diff options
author | Erich Eckner <git@eckner.net> | 2019-02-04 10:47:27 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-04 10:47:27 +0100 |
commit | d4702f12b6dbeebc8396a0520a30cb4e2cecb62e (patch) | |
tree | c53818e337e431d570e1c57147615dde89d264c0 /spamassassin-courier/spamassassin-courier.install | |
parent | 6ade47aabc6895ee01a61c39e45093462f6527aa (diff) | |
download | archlinuxewe-d4702f12b6dbeebc8396a0520a30cb4e2cecb62e.tar.xz |
spamassassin-courier new
Diffstat (limited to 'spamassassin-courier/spamassassin-courier.install')
-rw-r--r-- | spamassassin-courier/spamassassin-courier.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spamassassin-courier/spamassassin-courier.install b/spamassassin-courier/spamassassin-courier.install new file mode 100644 index 000000000..65f14a065 --- /dev/null +++ b/spamassassin-courier/spamassassin-courier.install @@ -0,0 +1,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 +} + |