From 1bfd91dd65db91bf802a7dc5e84c15d271fb7e44 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Mon, 26 Oct 2009 15:40:22 +0100 Subject: [PATCH] izmjene u konfi amavisa --- debian/changelog | 7 +++++++ debian/postinst | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/debian/changelog b/debian/changelog index 1e93b9c..400dc77 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +clamav-cn (3:0.95.2-1lenny2) stable; urgency=medium + + * Ispravlja /etc/amavis/conf.d/15-av_scanners zbog promijenjenih argumenata + clamscana + + -- Ivan Rako Mon, 26 Oct 2009 15:36:56 +0100 + clamav-cn (3:0.95.2-1lenny1) stable; urgency=medium * nova verzija sa volatile.debian.org diff --git a/debian/postinst b/debian/postinst index 50a2959..3cfb024 100755 --- a/debian/postinst +++ b/debian/postinst @@ -36,6 +36,29 @@ chown -R clamav:clamav /var/run/clamav /var/lib/clamav /var/log/clamav # dodaj korisnika clamav u grupu amavis (ako postoji...) getent group amavis > /dev/null && usermod -G amavis clamav && restart="yes" +# ispravi opciju od clamscana u amavis konfi +# --disable-summary -> --no-summary +if [ -f /etc/amavis/conf.d/15-av_scanners ]; then + cp_check_and_sed "\-\-disable-summary" \ + "s/--disable-summary/--no-summary/g" \ + /etc/amavis/conf.d/15-av_scanners && restart_amavis="yes" || true + + if [ -f /etc/amavis/conf.d/15-av_scanners.cn-old ]; then + rm -f /etc/amavis/conf.d/15-av_scanners.cn-old + fi +fi + +if [ "$restart_amavis" = "yes" ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + [ -x /etc/init.d/amavisd-cn ] && invoke-rc.d amavisd-cn restart + else + [ -x /etc/init.d/amavisd-cn ] && /etc/init.d/amavisd-cn restart + fi + # nije potreban restart clamava + restart="no" +fi + + # restart if needed [ "$restart" = "yes" ] || exit 0 if [ -x /usr/sbin/invoke-rc.d ]; then -- 1.7.10.4