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..e42aec3cd
--- /dev/null
+++ b/libre/parabolaweb-utils/parabolaweb-fcgi
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+. /etc/conf.d/parabolaweb
+
+[[ -e ${WEBDIR}/manage.py ]]
+
+sudo -u "${WEBUSER:-$USER}" python2 "${WEBDIR}/manage.py" runfcgi \
+ host=${HOST} \
+ port=${PORT} \
+ --settings=settings \
+ "$@"