blob: fae0264b2aaa40c189954b3d97e9457c7ea3fc3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
post_install() {
echo "You must run 'sa-update' to install spam rules before use."
}
post_upgrade() {
# 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 ]]
echo "Detected compiled rules, running sa-compile..."
sa-compile > /dev/null 2>&1
fi
}
|