summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-utils/parabolaweb-fcgi
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-21 01:07:09 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-21 01:07:09 -0400
commitacf31d3f7569b7db4c14a6011aab88b0ce48a696 (patch)
tree3f532f4ae06e8de6c5f3aff4a720d2c0d75619f9 /libre/parabolaweb-utils/parabolaweb-fcgi
parent53b785c979542521ba7bd7135246f1f9ba51757b (diff)
downloadabslibre-acf31d3f7569b7db4c14a6011aab88b0ce48a696.tar.gz
abslibre-acf31d3f7569b7db4c14a6011aab88b0ce48a696.tar.bz2
abslibre-acf31d3f7569b7db4c14a6011aab88b0ce48a696.zip
improve libre/parabolaweb-utils
meta: * add `python2-flup` as a dependency (needed for fcgi) filesystem: * mv `/usr/sbin/{update-parabolaweb,parabolaweb-update}` * pull `/usr/sbin/parabolaweb-fgci` out of `/etc/rc.d/parabolaweb` * pull `/etc/conf.d/parabolaweb` out of `/etc/rc.d/parabolaweb` * add `/usr/lib/systemd/system/parabolaweb.service`
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 \
+ "$@"