brisanje starih conffileova
[amavisd-cn.git] / debian / postinst
index 32c46bb..b7fba03 100755 (executable)
@@ -215,6 +215,15 @@ if [ -n "$2" -a -z "$changed_config" ] && \
   cp_echo "    perl -pi -e 's/_CN_DOMAIN_/$domain/g' $ACONF"
 fi
 
+# Delete old conffiles...
+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}
+done
+
 cp_mail $PKG $VERSION
 
 exit 0