diff options
author | B. Stack <bgstack15@gmail.com> | 2022-11-29 16:09:22 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-11-29 16:09:22 -0500 |
commit | 4a8ce7e2862b338a7f8e34d016a3119290239b0b (patch) | |
tree | 951ad8a52ddf31e489e4fab7c0d0c96947d6b0f4 /outbound.bin | |
download | outbound-master.tar.gz outbound-master.tar.bz2 outbound-master.zip |
Diffstat (limited to 'outbound.bin')
-rwxr-xr-x | outbound.bin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/outbound.bin b/outbound.bin new file mode 100755 index 0000000..0e9d18a --- /dev/null +++ b/outbound.bin @@ -0,0 +1,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}" |