From: Paul Hänsch Date: Sat, 28 Aug 2021 00:08:54 +0000 (+0200) Subject: let environment be determined by cgilite X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=2785c687f62b164d5c08a20481270c66653a6bff;p=webpoll let environment be determined by cgilite --- diff --git a/index.cgi b/index.cgi index a7481d7..a2059e2 100755 --- a/index.cgi +++ b/index.cgi @@ -1,14 +1,9 @@ #!/bin/sh -_EXEC="${_EXEC:-${0%/*}/}" -_DATA="${_DATA:-.}" -_BASE="${_BASE%/}" - -. "$_EXEC"/cgilite/cgilite.sh +. "${_EXEC:-${0%/*}}"/cgilite/cgilite.sh . "$_EXEC"/cgilite/session.sh . "$_EXEC"/cgilite/file.sh . "$_EXEC"/cgilite/storage.sh -#. "$_EXEC"/session_lock.sh . "$_EXEC"/widgets.sh PATH_INFO="$(PATH "/${PATH_INFO#${_BASE}}")"