aboutsummaryrefslogtreecommitdiff
path: root/fuss.bin
diff options
context:
space:
mode:
Diffstat (limited to 'fuss.bin')
-rwxr-xr-xfuss.bin10
1 files changed, 10 insertions, 0 deletions
diff --git a/fuss.bin b/fuss.bin
new file mode 100755
index 0000000..c1f32b7
--- /dev/null
+++ b/fuss.bin
@@ -0,0 +1,10 @@
+#!/bin/sh
+# At a very basic level, it is simply
+# xvfb-run uwsgi_python39 --ini /etc/fuss.wsgi.ini
+COMMAND=""
+grep -qiE 'ICONS\s*=\s*(Yes|True)' "/etc/fuss.conf" 1>/dev/null 2>&1 && COMMAND="xvfb-run"
+
+# On rhel-like, use "uwsgi" but uwsgi_python39 elsewhere
+grep -qiE 'ID=.*(rhel|centos|fedora)' /etc/os-release && COMMAND="${COMMAND} uwsgi" || \
+ COMMAND="${COMMAND} uwsgi_python39"
+${COMMAND} --ini /etc/fuss.wsgi.ini
bgstack15