blob: e98039f0be595a0472df48f148f55ea56867515b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Reference: fuss.bin from fuss project
# Startdate: 2022-02-13 19:25
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 "${STACKBIN_WSGI_INI}"
|