#!/bin/bash svcstop /service/clamav || exit 1 #postinst.sh post.amavis || exit 1 useradd -u 115 amavis groupadd -g 115 amavis chown -R amavis:amavis /usr/share/clamav chown -R amavis:amavis /var/run/clamav freshclam svcreset /service/clamav || exit 1 #re-enable virusscanner in amavis (was disabled because of eol via syn3_patches) sed 's/^ @bypass_virus_checks_maps/# @bypass_virus_checks_maps/' -i /etc/amavisd.conf svcrestart /service/amavis #old system, remove this: rm /etc/cron.hourly/freshclam 2>/dev/null #update and test scanner /etc/cron.hourly/syn3-clamav exit 0