From: Paul Hänsch Date: Sat, 23 Jan 2021 11:21:05 +0000 (+0100) Subject: create working directories at startup X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=baf5238a2cb8a6287d31f196ebdbeb11d316226c;p=confetti create working directories at startup --- diff --git a/index.cgi b/index.cgi index 07edbf2..ae9ac2a 100755 --- 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