summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-29 19:07:53 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-29 19:50:01 +0300
commitb78d018b997d393d7626ddd886f24be4373d81ee (patch)
treed31ec32c7a367d5cc21984ee51ba0660a3099bfa /res
parentf383e58156f08af35adca078eea23bd4596c2e79 (diff)
deb-pkg: enable required apache modules
Diffstat (limited to 'res')
-rw-r--r--res/debian/postinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/debian/postinst b/res/debian/postinst
index 860dbf91..1f871f78 100644
--- a/res/debian/postinst
+++ b/res/debian/postinst
@@ -21,6 +21,17 @@ set -e
case "$1" in
configure)
# call chmod, chown, etc.
+
+ chown www-data:www-data /var/run/rhizi
+
+ # configure apache - FIXME: impl undo
+ echo 'enabling apache proxy modules - warning: this will not be reverted during package uninstall'
+ /usr/sbin/a2enmod deflate
+ /usr/sbin/a2enmod proxy
+ /usr/sbin/a2enmod proxy_http
+ /usr/sbin/a2enmod proxy_wstunnel
+ /usr/sbin/a2enmod rewrite
+
;;
abort-upgrade|abort-remove|abort-deconfigure)