From: Dinko Korunic Date: Sun, 12 Apr 2009 12:19:21 +0000 (+0200) Subject: - popravi bug u zakomentiravanju SAVI-ja koji postoji od prvih verzija amavisd-cn... X-Git-Tag: v2.6.4-1~7 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=28dd2a69844690525366b877227aa9b7fd6d3b93;p=amavisd-cn.git - popravi bug u zakomentiravanju SAVI-ja koji postoji od prvih verzija amavisd-cn paketa :( --- diff --git a/debian/postinst b/debian/postinst index 0d341f6..ee3f156 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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