- popravi bug u zakomentiravanju SAVI-ja koji postoji od prvih verzija amavisd-cn...
authorDinko Korunic <kreator@carnet.hr>
Sun, 12 Apr 2009 12:19:21 +0000 (14:19 +0200)
committerDinko Korunic <kreator@carnet.hr>
Sun, 12 Apr 2009 12:19:21 +0000 (14:19 +0200)
debian/postinst

index 0d341f6..ee3f156 100755 (executable)
@@ -57,12 +57,14 @@ fi
 if [ ! -f $ACONF -o ! -s $ACONF ]; then
   # Create fresh config from template
   conf_from_template
+  restart_daemon=1
 fi
 
 # disable SAVI as proven problematic
-if cp_check_and_sed "^\['Sophos SAVI'" \
- "s/^\(\['Sophos SAVI', ..sophos_savi \]\)/#\1/" $ACONF; then
+if cp_check_and_sed "^[[:blank:]]*\['Sophos SAVI'" \
+ "s/^[[:blank:]]*\(\['Sophos SAVI', ..sophos_savi \]\)/#\1/" $ACONF; then
   cp_echo "CN: Disabled SAVI::Perl usage in ${ACONF}."
+  restart_daemon=1
 fi
 
 check_and_add_alias virusalert root