NOW: load passenger modu automatically (without restarting apache though)
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 19 Sep 2016 14:50:56 +0000 (16:50 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 19 Sep 2016 14:50:56 +0000 (16:50 +0200)
NOW/debian/now-apache.postinst [new file with mode: 0644]
NOW/debian/preinst

diff --git a/NOW/debian/now-apache.postinst b/NOW/debian/now-apache.postinst
new file mode 100644 (file)
index 0000000..0b09272
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure|reconfigure)
+        if [ -e /etc/apache2/apache2.conf ]; then
+            a2enmod passenger >/dev/null || :
+        fi
+    ;;
+esac
+
+#DEBHELPER#
index 7eac864..9626dbf 100644 (file)
@@ -1,6 +1,4 @@
 #!/bin/sh
-# preinst script for NOW
-
 set -e
 
 case "$1" in