X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=cbd1e674dada34789a31c75c3c966a3c0582c346;hb=7ace5424b7711c90d37117b174754cea041dc677;hp=4adc7bc95a511ba9b3bb3c48f09107757f6cdb18;hpb=afa639f1215d720cbef34b3055871245548ac705;p=fail2ban-cn.git diff --git a/debian/postinst b/debian/postinst index 4adc7bc..cbd1e67 100755 --- a/debian/postinst +++ b/debian/postinst @@ -51,11 +51,7 @@ if [ -e "$CONF" ]; then fi # restart the services -if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d fail2ban restart || exit $? -else - /etc/init.d/fail2ban restart || exit $? -fi +service fail2ban restart || exit $? # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.