From 1ec1b8e0219d4a175387217ac74db1602bbf1119 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Fri, 6 Dec 2013 14:37:23 +0100 Subject: [PATCH] izmjene u maintainer skriptama vezano za restart --- debian/postinst | 6 ++++++ debian/prerm | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 1.7.10.4