summarylogtreecommitdiffstats
path: root/webmin.install
blob: 1f9a350dc36965081a1de82b9f044174bbeafdd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_upgrade() {
  if (( $(vercmp $2 2.013-1) <= 0)); then
    sed -i -e 's/white/welcome/g' -e 's/black/block/g' etc/webmin/spam/* || true
cat << _EOF

>>> Webmin's SpamAssassin (spam) module has been patched for SpamAssassin v4+.
>>> Replaced white/black with welcome/block in /etc/webmin/spam/*
>>> Please verify the same and rename any files if necessary.

>>> Also do not forget to activate version compatibility:
>>>   enable_compat welcomelist_blocklist

>>> For details, see:
>>>   https://cwiki.apache.org/confluence/display/spamassassin/WelcomelistBlocklist

_EOF
  fi
}