izmjene u konfi amavisa
authorIvan Rako <irako@nekkar.carnet.hr>
Mon, 26 Oct 2009 14:40:22 +0000 (15:40 +0100)
committerIvan Rako <irako@nekkar.carnet.hr>
Mon, 26 Oct 2009 14:40:22 +0000 (15:40 +0100)
debian/changelog
debian/postinst

index 1e93b9c..400dc77 100644 (file)
@@ -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 <Ivan.Rako@CARNet.hr>  Mon, 26 Oct 2009 15:36:56 +0100
+
 clamav-cn (3:0.95.2-1lenny1) stable; urgency=medium
 
   * nova verzija sa volatile.debian.org
index 50a2959..3cfb024 100755 (executable)
@@ -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