X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=index.cgi;h=277f7ae0517f4c7eeb01edc08c67fb4fbb236ba3;hp=90ded2d30b79bef9c9f0882106121eb6420c949f;hb=737e7f91162ec98b99dd2796ca26dd95e8c21f49;hpb=3210536411f1c532d0e53acf280fb69bba7e951f diff --git a/index.cgi b/index.cgi index 90ded2d..277f7ae 100755 --- a/index.cgi +++ b/index.cgi @@ -30,7 +30,7 @@ debug "Storage dir: $_DATA" [ -w "$_DATA" ] && [ -d "$_DATA" ] || die "storage directory must be writable" # create directories for object storage -for each in "$_DATA"/{vcard,mappings,courses}; do +for each in "$_DATA"/{vcard,mappings,courses,cache}; do [ ! -e "$each" ] && mkdir "$each" [ -w "$each" ] && [ -d "$each" ] || die "storage $each must be a writable directory" done @@ -48,4 +48,4 @@ EOF cgi_get debug "$_GET" -. "$_EXEC/page.sh" +[ -n "$_GET[\"action\"]" ] && . "$_EXEC/action.sh" || . "$_EXEC/page.sh"