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