X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=mailman-cn.git;a=blobdiff_plain;f=debian%2Fpostrm;fp=debian%2Fpostrm;h=e7ef9b3df120203685d22f6df5c88420d0341a48;hp=2bcf4b28d4afed3701024a1617daba06bc833411;hb=555fd6a113c94c78e77e835c3f73921a988cc842;hpb=9cbac56d380e7470d5a6755e0574c18e89c92b38 diff --git a/debian/postrm b/debian/postrm index 2bcf4b2..e7ef9b3 100755 --- a/debian/postrm +++ b/debian/postrm @@ -8,7 +8,9 @@ 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