aboutsummaryrefslogtreecommitdiff
path: root/outbound.bin
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-11-29 16:09:22 -0500
committerB. Stack <bgstack15@gmail.com>2022-11-29 16:09:22 -0500
commit4a8ce7e2862b338a7f8e34d016a3119290239b0b (patch)
tree951ad8a52ddf31e489e4fab7c0d0c96947d6b0f4 /outbound.bin
downloadoutbound-4a8ce7e2862b338a7f8e34d016a3119290239b0b.tar.gz
outbound-4a8ce7e2862b338a7f8e34d016a3119290239b0b.tar.bz2
outbound-4a8ce7e2862b338a7f8e34d016a3119290239b0b.zip
initial commitHEADmaster
Diffstat (limited to 'outbound.bin')
-rwxr-xr-xoutbound.bin11
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}"
bgstack15