dodan if uvjet kod brisanja
[amavisd-cn.git] / 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