From badcb48cd279f0e2a0ed7eae2661171f2411e647 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 7 Jan 2021 20:52:38 -0500 Subject: initial commit --- fuss.bin | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 fuss.bin (limited to 'fuss.bin') 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 -- cgit