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#
[ "$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#