X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=clamav-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=50a2959607873c0786c4d8eaa8a51c0af73f5e51;hp=d40791d0b6d20bbba1242dff72dc4b57c33c878e;hb=20a926dc87f693c82b27ca45681c5cc4962ed680;hpb=5369fa1796979773d4e33c04578ece90eb52b625 diff --git a/debian/postinst b/debian/postinst index d40791d..50a2959 100755 --- a/debian/postinst +++ b/debian/postinst @@ -6,7 +6,7 @@ set -e [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx # Load CARNet functions -#. /usr/share/carnet-tools/functions.sh +. /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 @@ -22,6 +22,15 @@ set -e # restart="yes" #fi +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 + chown -R clamav:clamav /var/run/clamav /var/lib/clamav /var/log/clamav # dodaj korisnika clamav u grupu amavis (ako postoji...)