X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=2f9959a02a6039b527c0f95a9246b2442613b530;hb=f6f72be923b3a355cbd0e9749fa38d6736b37171;hp=0bd6a78a042796aabd8637c7ebc87f378a8df80a;hpb=200ba04c11dc7ea4d18b3265309531543c928e12;p=amavisd-cn.git diff --git a/debian/postinst b/debian/postinst index 0bd6a78..2f9959a 100755 --- a/debian/postinst +++ b/debian/postinst @@ -103,7 +103,7 @@ fi : # Fix missing redirection in cron files for amavisd-new-cronjob -add_redirection /etc/cron.d/amavisd-new /etc/cron.daily/amavisd-new +add_redirection /etc/cron.d/amavisd-new # Cleanup and finalization if dpkg --compare-versions "$2" lt 2:20030616p10-4; then @@ -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#