X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=mailman-cn.git;a=blobdiff_plain;f=debian%2Fpostrm;h=8973879ff6b8c66ebeb149c925f3818fcdc12b5a;hp=2bcf4b28d4afed3701024a1617daba06bc833411;hb=68e596ee1d7104a35847a0f3ed5f49b8c1d06d2a;hpb=44c55fd6214d7b90b0adba7740129b516a3853e3 diff --git a/debian/postrm b/debian/postrm index 2bcf4b2..8973879 100755 --- a/debian/postrm +++ b/debian/postrm @@ -8,7 +8,11 @@ if [ /etc/apache2/conf.d/mailman-cn.conf ]; then rm -f /etc/apache2/conf.d/mailman-cn.conf fi -# restartat apache -if [ -x /etc/init.d/apache2 ]; then - /etc/init.d/apache2 reload || true +# 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 + +#DEBHELPER#