#!/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