X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=clamav-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=6b3e95047ce4fe1473adf53f4610c9bd785965fd;hp=40eb973b155f4dc8e33bce81a79aa8909bac9fa0;hb=4636304b8e720844b617a5036db8a681b81e4e50;hpb=04ad58ea32e978408c45d707f51ed4fe15922428 diff --git a/debian/postinst b/debian/postinst index 40eb973..6b3e950 100755 --- a/debian/postinst +++ b/debian/postinst @@ -8,20 +8,6 @@ set -e # Load CARNet functions . /usr/share/carnet-tools/functions.sh -#if dpkg --compare-versions "$2" lt 2:0.91.1-1 ; then -# cp_backup_conffile /etc/clamav/clamd.conf -# rm -f /etc/clamav/clamd.conf -# cp -a /usr/share/doc/clamav-cn/examples/clamd.conf /etc/clamav/clamd.conf -# restart="yes" -#fi -# -#if dpkg --compare-versions "$2" lt 2:0.91.1-1 ; then -# cp_backup_conffile /etc/clamav/freshclam.conf -# rm -f /etc/clamav/freshclam.conf -# cp -a /usr/share/doc/clamav-cn/examples/freshclam.conf /etc/clamav/freshclam.conf -# restart="yes" -#fi - cp_check_and_sed "^AllowSupplementaryGroups false" \ "s/AllowSupplementaryGroups false/AllowSupplementaryGroups true/g" \ /etc/clamav/clamd.conf && restart="yes" || true @@ -48,6 +34,11 @@ if [ -f /etc/amavis/conf.d/15-av_scanners ]; then fi fi +# izbaciti MSRBL +if ! grep -q "^unset msrbl_dbs" /etc/clamav-unofficial-sigs.conf; then + echo "unset msrbl_dbs" >> /etc/clamav-unofficial-sigs.conf +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