X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=191aafd214d85303c30ac163978e202a3d6206a4;hb=5365af31f0919e2214afbd1cbe53b88c8fcfc40c;hp=0bd6a78a042796aabd8637c7ebc87f378a8df80a;hpb=06349485b104069419774b006fc895821a695e11;p=amavisd-cn.git diff --git a/debian/postinst b/debian/postinst index 0bd6a78..191aafd 100755 --- a/debian/postinst +++ b/debian/postinst @@ -180,6 +180,9 @@ update-rc.d amavisd-cn defaults 19 21 >/dev/null # fi # fi #fi + +restart_daemon="1" + if [ "$restart_daemon" -a -x /etc/init.d/amavisd-cn ]; then if [ -x "/etc/init.d/amavisd-cn" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then @@ -189,6 +192,7 @@ if [ "$restart_daemon" -a -x /etc/init.d/amavisd-cn ]; then fi fi fi +# always check that the daemons are running # this needs to be updated when $CRONTAB file changes if dpkg --compare-versions "$2" lt "2:20030616p10-4"; then @@ -238,3 +242,5 @@ done cp_mail $PKG $VERSION exit 0 + +#DEBHELPER#