File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,6 @@ set -eu
4343
4444OPTIND=1 # Reset getopt in case it has been used previously in the shell
4545
46- # FastCGI variables
47- export REQUEST_METHOD=" GET"
48- export SCRIPT_NAME=" /status"
49- export SCRIPT_FILENAME=" /status"
50- FCGI_CONNECT_DEFAULT=" localhost:9000"
51-
5246# Required software
5347FCGI_CMD_PATH=$( command -v cgi-fcgi) || { >&2 echo " Make sure fcgi is installed (i.e. apk add --no-cache fcgi). Aborting." ; exit 4; }
5448command -v sed 1> /dev/null || { >&2 echo " Make sure sed is installed (i.e. apk add --no-cache busybox). Aborting." ; exit 4; }
120114
121115eval set -- " $GETOPT "
122116
117+ # FastCGI variables
118+ FCGI_CONNECT_DEFAULT=" localhost:9000"
119+ FCGI_STATUS_PATH_DEFAULT=" /status"
120+
121+ export REQUEST_METHOD=" GET"
122+ export SCRIPT_NAME=" ${FCGI_STATUS_PATH:- $FCGI_STATUS_PATH_DEFAULT } "
123+ export SCRIPT_FILENAME=" ${FCGI_STATUS_PATH:- $FCGI_STATUS_PATH_DEFAULT } "
123124FCGI_CONNECT=" ${FCGI_CONNECT:- $FCGI_CONNECT_DEFAULT } "
124125
125126VERBOSE=0
You can’t perform that action at this time.
0 commit comments