aboutsummaryrefslogtreecommitdiff
path: root/outbound.bin
blob: 0e9d18a64531ee5957c5669753d42cbdea17db9b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Reference: fifconfig.bin from stackbin project
# Startdate: 2022-11-29
test -z "${OUTBOUND_WSGI_INI}" && {
   thisscript="$( readlink -f "${0}" )"
   OUTBOUND_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 "${OUTBOUND_WSGI_INI}"
bgstack15