From 33445bae613225f9f4bdc75bd6b23f4c1b7991a9 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Tue, 5 Nov 2013 12:59:33 +0100 Subject: [PATCH] dodan if uvjet kod brisanja --- debian/postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/postinst b/debian/postinst index b7fba03..a2e5bce 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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 -- 1.7.10.4