blob: d3b2da309cc65a0713e90bd8575bfd9160329959 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
# Reference: fuss.bin from fuss project
# Startdate: 2022-02-13 19:25
# Goal: see if uwsgi reacts to the @timer directives in the pastebin.py file, because flask run doesn't.
thisscript="$( readlink -f "${0}" )"
COMMAND=""
grep -qiE 'ID=.*(rhel|centos|fedora)' /etc/os-release && COMMAND="${COMMAND} uwsgi" || \
COMMAND="${COMMAND} uwsgi_python39"
${COMMAND} --ini "$( dirname "${thisscript}" )/$( basename "${thisscript}" | sed -r -e 's/\.bin$//;' ).wsgi.ini"
|