summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-utils/parabolaweb-fcgi
diff options
context:
space:
mode:
Diffstat (limited to 'libre/parabolaweb-utils/parabolaweb-fcgi')
-rw-r--r--libre/parabolaweb-utils/parabolaweb-fcgi12
1 files changed, 12 insertions, 0 deletions
diff --git a/libre/parabolaweb-utils/parabolaweb-fcgi b/libre/parabolaweb-utils/parabolaweb-fcgi
new file mode 100644
index 000000000..3dec02e10
--- /dev/null
+++ b/libre/parabolaweb-utils/parabolaweb-fcgi
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+. /etc/conf.d/parabolaweb
+
+[[ -e /srv/http/web/manage.py ]]
+
+sudo -u "${WEBUSER:-$USER}" python2 /srv/http/web/manage.py runfcgi \
+ host=${HOST} \
+ port=${PORT} \
+ --settings=settings \
+ "$@"