jos izmjena za apache 2.4
authorIvan Rako <irako@nekkar.carnet.hr>
Sun, 21 Feb 2016 12:18:26 +0000 (13:18 +0100)
committerIvan Rako <irako@nekkar.carnet.hr>
Sun, 21 Feb 2016 12:18:26 +0000 (13:18 +0100)
debian/postinst
debian/postrm
debian/prerm

index f25b12c..a89c76d 100755 (executable)
@@ -23,7 +23,7 @@ if [ ! -L /etc/apache2/conf-available/mailman-cn.conf -a ! -f /etc/apache2/conf-
 fi
 
 a2enconf mailman-cn
-a2enmod cgi
+a2enmod cgid
 
 if [ -L /etc/apache2/conf.d/mailman-cn.conf ]; then
   rm -f /etc/apache2/conf.d/mailman-cn.conf
index 8973879..584e168 100755 (executable)
@@ -8,11 +8,13 @@ if [ /etc/apache2/conf.d/mailman-cn.conf ]; then
   rm -f /etc/apache2/conf.d/mailman-cn.conf
 fi
 
-# reload apache2 
-if [ -x /usr/sbin/invoke-rc.d ]; then
-  [ -x /etc/init.d/apache2 ] && invoke-rc.d apache2 reload
-else
-  [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 reload
+a2disconf mailman-cn
+
+if [ /etc/apache2/conf-available/mailman-cn.conf ]; then
+  rm -f /etc/apache2/conf-available/mailman-cn.conf
 fi
 
+# reload apache2 
+reload apache2 reload
+
 #DEBHELPER#
index afba8b7..d10d643 100755 (executable)
@@ -5,10 +5,6 @@ set -e
 [ "$1" = "remove" ] || exit 0
 
 # reload apache2 
-if [ -x /usr/sbin/invoke-rc.d ]; then
-  [ -x /etc/init.d/apache2 ] && invoke-rc.d apache2 reload
-else
-  [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 reload
-fi
+service apache2 reload
 
 #DEBHELPER#