izmjene u maintainer skriptama vezano za restart debian/3%2.7.1_cn2
authorIvan Rako <irako@nekkar.carnet.hr>
Fri, 6 Dec 2013 13:37:23 +0000 (14:37 +0100)
committerIvan Rako <irako@nekkar.carnet.hr>
Fri, 6 Dec 2013 13:37:23 +0000 (14:37 +0100)
debian/postinst
debian/prerm

index 0bd6a78..191aafd 100755 (executable)
@@ -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#
index cba794c..9eb5a0d 100755 (executable)
@@ -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