From: Paul Hänsch Date: Thu, 27 Jul 2023 07:16:35 +0000 (+0200) Subject: export config variables for macros X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=ae4c33994cdedcd115bc3a244259058570ca66a9;p=shellwiki export config variables for macros --- diff --git a/index.cgi b/index.cgi index 61a8bb0..5d16823 100755 --- a/index.cgi +++ b/index.cgi @@ -6,9 +6,9 @@ . "${_EXEC}/tools.sh" . "${_EXEC}/acl.sh" -REV_PAGES=${REV_PAGES:-true} -REV_ATTACHMENTS=${REV_ATTACHMENTS:-false} -WIKI_THEME="${WIKI_THEME:-default}" +export REV_PAGES=${REV_PAGES:-true} +export REV_ATTACHMENTS=${REV_ATTACHMENTS:-false} +export WIKI_THEME="${WIKI_THEME:-default}" which git >/dev/null || REV_PAGES=false [ "$REV_PAGES" != true ] && REV_ATTACHMENTS=false