dodan if uvjet kod brisanja debian/3%2.7.1_cn1
authorIvan Rako <irako@nekkar.carnet.hr>
Tue, 5 Nov 2013 11:59:33 +0000 (12:59 +0100)
committerIvan Rako <irako@nekkar.carnet.hr>
Tue, 5 Nov 2013 11:59:33 +0000 (12:59 +0100)
debian/postinst

index b7fba03..a2e5bce 100755 (executable)
@@ -220,8 +220,10 @@ for conffile in /etc/logcheck/violations.ignore.d/amavisd-new \
          /etc/logcheck/ignore.d.server/amavisd-new \
          /etc/logcheck/ignore.d.workstation/amavisd-new \
          /etc/cron.daily/amavisd-new; do
-  cp_echo "CN: Deleting old conffile ${conffile}..."
-  rm -f ${conffile}
+  if [ -f ${conffile} ]; then
+    cp_echo "CN: Deleting old conffile ${conffile}..."
+    rm -f ${conffile}
+  fi
 done
 
 cp_mail $PKG $VERSION