source: npl/mailserver/clamav_conf/post.clamav_conf

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 578 bytes
Line 
1#!/bin/bash
2svcstop /service/clamav || exit 1
3#postinst.sh post.amavis || exit 1
4useradd -u 115 amavis
5groupadd -g 115 amavis
6chown -R amavis:amavis /usr/share/clamav
7chown -R amavis:amavis /var/run/clamav
8freshclam
9svcreset /service/clamav || exit 1
10
11#re-enable virusscanner in amavis (was disabled because of eol via syn3_patches)
12sed 's/^ @bypass_virus_checks_maps/# @bypass_virus_checks_maps/' -i /etc/amavisd.conf
13svcrestart /service/amavis
14
15#old system, remove this:
16rm /etc/cron.hourly/freshclam 2>/dev/null
17
18#update and test scanner
19/etc/cron.hourly/syn3-clamav
20
21exit 0
Note: See TracBrowser for help on using the repository browser.