blob: e38910b7a0fc450c9067199aa044fa85cf712ca5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
post_install() {
getent group amavis >/dev/null || groupadd -g 333 amavis >/dev/null
getent passwd amavis >/dev/null || useradd -u 333 -M -d /run/amavis/home -g amavis -s /bin/false amavis >/dev/null
}
post_upgrade() {
[ "$(vercmp $2 2.6.4-4)" -lt 0 ] && cat <<EOF
<<<
<<< The anti-spam and anti-virus features has been disabled by default,you
<<< need to mannully enable them by comment the follow lines in /etc/amavisd.conf
<<<
<<< # @bypass_virus_checks_maps = (1); # controls running of anti-virus code
<<< # @bypass_spam_checks_maps = (1); # controls running of anti-spam code
<<<
EOF
[ "$(vercmp $2 2.8.0-1)" -lt 0 ] && cat <<EOF
<<< Homedir, pid & lock files are now in volatile storage at: /run/amavis
<<< You must update /etc/amavisd/amavisd.conf to prevent breakage!
EOF
post_install
}
post_remove() {
groupdel amavis &>/dev/null
userdel amavis &>/dev/null
:
}
|