aboutsummaryrefslogtreecommitdiff
path: root/outbound.bin
diff options
context:
space:
mode:
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