jos izmjena za apache 2.4
[mailman-cn.git] / debian / postrm
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#