blob: c1f32b7606d159b23ddcf678f8586336bd1d9b67 (
plain)
1
2
3
4
5
6
7
8
9
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
|