From: Ivan Rako Date: Mon, 26 Oct 2009 14:41:44 +0000 (+0100) Subject: izmjene zbog amavisa X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=refs%2Fheads%2Fetch;p=clamav-cn.git izmjene zbog amavisa --- diff --git a/debian/changelog b/debian/changelog index 57ddaa8..b5ccbd1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +clamav-cn (3:0.95.2-1etch2) 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-1etch1) stable; urgency=high * 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