diff options
author | B. Stack <bgstack15@gmail.com> | 2022-03-16 14:10:45 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-03-16 14:10:45 -0400 |
commit | 5ff15f53eb16c1b6326c6127744908d9b105214c (patch) | |
tree | 654eeb5729f1f3be6022c1b3be2ea9480c3c3f16 /fifconfig.bin | |
download | fifconfig-5ff15f53eb16c1b6326c6127744908d9b105214c.tar.gz fifconfig-5ff15f53eb16c1b6326c6127744908d9b105214c.tar.bz2 fifconfig-5ff15f53eb16c1b6326c6127744908d9b105214c.zip |
initial commit
Diffstat (limited to 'fifconfig.bin')
-rwxr-xr-x | fifconfig.bin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fifconfig.bin b/fifconfig.bin new file mode 100755 index 0000000..ec77be6 --- /dev/null +++ b/fifconfig.bin @@ -0,0 +1,11 @@ +#!/bin/sh +# Reference: stackbin.bin from stackbin project +# Startdate: 2022-03-16 +test -z "${FIFCONFIG_WSGI_INI}" && { + thisscript="$( readlink -f "${0}" )" + FIFCONFIG_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:+${COMMAND} }uwsgi_python39" +${COMMAND} --ini "${FIFCONFIG_WSGI_INI}" |