]> git.plutz.net Git - lobster/commitdiff
create working directories at startup
authorPaul Hänsch <paul@plutz.net>
Sat, 23 Jan 2021 11:21:05 +0000 (12:21 +0100)
committerPaul Hänsch <paul@plutz.net>
Sat, 23 Jan 2021 11:21:05 +0000 (12:21 +0100)
index.cgi

index 07edbf2bb25244cc15c1aac9f4e9b7653ae1c47c..ae9ac2a8325b96727ca8ce0fb6d8d11a8abeb17c 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -9,6 +9,8 @@ esac; done
 [ -z "${_EXEC%/}" ] && _EXEC="$(realpath "${0%/*}")" || _EXEC="${_EXEC%/}"
 [ -z "${_DATA%/}" ] && _DATA=. || _DATA="${_DATA%/}"
 
+mkdir -p "${_DATA}/cache" "${_DATA}/mappings" "${_DATA}/export" "${_DATA}/lock" "${_DATA}/ical" "${_DATA}/vcard"
+
 debug() {
   local dbg=/dev/stderr
   if [ ! "$DEBUG" ]; then