aboutsummaryrefslogtreecommitdiff
path: root/fuss.bin
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-01-07 20:52:38 -0500
committerB Stack <bgstack15@gmail.com>2021-01-07 20:56:10 -0500
commitbadcb48cd279f0e2a0ed7eae2661171f2411e647 (patch)
tree920d3319404ece4811fd7f8bea5ef96ba52021e1 /fuss.bin
downloadfuss-badcb48cd279f0e2a0ed7eae2661171f2411e647.tar.gz
fuss-badcb48cd279f0e2a0ed7eae2661171f2411e647.tar.bz2
fuss-badcb48cd279f0e2a0ed7eae2661171f2411e647.zip
initial commit
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