5 [ "$1" = "configure" ] || exit 0
6 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
9 . /usr/share/carnet-tools/functions.sh
12 cp_check_and_sed "^AllowSupplementaryGroups" \
13 "s/^AllowSupplementaryGroups/#AllowSupplementaryGroups/g" \
14 /etc/clamav/clamd.conf && restart="yes" || true
16 if [ -d /run/clamav ]; then
17 chown -R clamav:clamav /run/clamav
20 if [ -d /var/lib/clamav ]; then
21 chown -R clamav:clamav /var/lib/clamav
24 if [ -d /var/log/clamav ]; then
25 chown -R clamav:clamav /var/log/clamav
28 # dodaj korisnika clamav u grupu amavis (ako postoji...)
29 getent group amavis > /dev/null && usermod -G amavis clamav && restart="yes"
32 [ "$restart" = "yes" ] || exit 0
33 service clamav-daemon restart
34 service clamav-freshclam restart