aboutsummaryrefslogtreecommitdiff
path: root/stackbin.bin
diff options
context:
space:
mode:
Diffstat (limited to 'stackbin.bin')
-rwxr-xr-xstackbin.bin7
1 files changed, 5 insertions, 2 deletions
diff --git a/stackbin.bin b/stackbin.bin
index 4fb3241..e98039f 100755
--- a/stackbin.bin
+++ b/stackbin.bin
@@ -1,8 +1,11 @@
#!/bin/sh
# Reference: fuss.bin from fuss project
# Startdate: 2022-02-13 19:25
-thisscript="$( readlink -f "${0}" )"
+test -z "${STACKBIN_WSGI_INI}" && {
+ thisscript="$( readlink -f "${0}" )"
+ STACKBIN_WSGI_INI="$( dirname "${thisscript}" )/$( basename "${thisscript}" | sed -r -e 's/\.bin$//;' ).wsgi.ini"
+}
COMMAND=""
grep -qiE 'ID=.*(rhel|centos|fedora)' /etc/os-release && COMMAND="${COMMAND} uwsgi" || \
COMMAND="${COMMAND} uwsgi_python39"
-${COMMAND} --ini "$( dirname "${thisscript}" )/$( basename "${thisscript}" | sed -r -e 's/\.bin$//;' ).wsgi.ini"
+${COMMAND} --ini "${STACKBIN_WSGI_INI}"
bgstack15