X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=clamav-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=50a2959607873c0786c4d8eaa8a51c0af73f5e51;hp=22416dbdeda4d83ef183f687feab1e8933efa029;hb=db4bb9fe720df1c57d7a9b77596a672cb340803f;hpb=a64c1751113dc6bdeb38820c0831241e20a50520 diff --git a/debian/postinst b/debian/postinst index 22416db..50a2959 100755 --- a/debian/postinst +++ b/debian/postinst @@ -3,9 +3,10 @@ set -e [ "$1" = "configure" ] || exit 0 +[ "$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 @@ -21,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...)