blob: ec77be6b5973118c05d58e4731bbfdf8c0bf4aef (
plain)
1
2
3
4
5
6
7
8
9
10
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}"
|