-#. /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
+. /usr/share/carnet-tools/functions.sh
+
+cp_check_and_sed "^AllowSupplementaryGroups false" \
+ "s/AllowSupplementaryGroups false/AllowSupplementaryGroups true/g" \
+ /etc/clamav/clamd.conf && restart="yes" || true
+
+if ! grep -q ^AllowSupplementaryGroups /etc/clamav/clamd.conf; then
+ echo "AllowSupplementaryGroups true" >> /etc/clamav/clamd.conf
+ reload="yes"
+fi