summaryrefslogtreecommitdiff
path: root/extra/spamassassin/spamassassin.install
blob: e43453e97e5636ee16568a954c018980143f8e70 (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 ]]; then
    echo "Detected compiled rules, running sa-compile..."
    sa-compile > /dev/null 2>&1
fi
}