From dbec0460642ff3c3d368eb22bbb0990a01640c62 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Tue, 5 Nov 2013 12:55:48 +0100 Subject: [PATCH] brisanje starih conffileova --- debian/changelog | 10 ++++++++++ debian/postinst | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/debian/changelog b/debian/changelog index c71773a..e3c0be3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +amavisd-cn (3:2.7.1~cn1) stable; urgency=low + + * Brisanje zaostalih konfiguracijskih datoteka: + /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 + + -- Ivan Rako Tue, 05 Nov 2013 12:51:57 +0100 + amavisd-cn (3:2.7.1~cn0) stable; urgency=low * Prva verzija za wheezy diff --git a/debian/postinst b/debian/postinst index 32c46bb..b7fba03 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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 -- 1.7.10.4