From: Ivan Rako Date: Fri, 6 Dec 2013 13:37:23 +0000 (+0100) Subject: izmjene u maintainer skriptama vezano za restart X-Git-Tag: debian/3%2.7.1_cn2^0 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=amavisd-cn.git;a=commitdiff_plain;h=1ec1b8e0219d4a175387217ac74db1602bbf1119 izmjene u maintainer skriptama vezano za restart --- 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# diff --git a/debian/prerm b/debian/prerm index cba794c..9eb5a0d 100755 --- a/debian/prerm +++ b/debian/prerm @@ -51,9 +51,9 @@ if [ "$1" = remove ]; then fi fi +exit 0 + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# - -exit 0