From: Ivan Rako Date: Tue, 5 Nov 2013 11:59:33 +0000 (+0100) Subject: dodan if uvjet kod brisanja X-Git-Tag: debian/3%2.7.1_cn1^0 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=33445bae613225f9f4bdc75bd6b23f4c1b7991a9;p=amavisd-cn.git dodan if uvjet kod brisanja --- 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