blob: 65f14a06567b80fff8c35b733c7d9ba884a61632 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
post_install() {
echo "You must run 'sa-update' to install spam rules before use."
}
post_upgrade() {
if [ "$(vercmp $2 3.4)" -lt 0 ]; then
echo '/var/lib/spamassassin is now owned by the spamd user. spamassassin.service'
echo 'will also run under that user. You may need to adjust your setup.'
fi
# Compile rules, if rules have previously been compiled, and it's possible
if type re2c &>/dev/null && type sa-compile &>/dev/null && [[ -d /var/lib/spamassassin/compiled ]]; then
echo "Detected compiled rules, running sa-compile..."
sa-compile > /dev/null 2>&1
fi
true
}
|