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 07edbf2..ae9ac2a 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