summaryrefslogtreecommitdiff
path: root/testing/spamassassin/spamassassin.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-18 00:02:28 +0000
committerroot <root@rshg054.dnsready.net>2012-08-18 00:02:28 +0000
commit948da5eabcbf8d74270e661d0730ba1c203913f5 (patch)
tree8536fd0b4622f9f6c77cb4716bf5c315c457038a /testing/spamassassin/spamassassin.install
parentbbf2c63849bdf1654e767058f277da2e983c5f0b (diff)
Sat Aug 18 00:02:28 UTC 2012
Diffstat (limited to 'testing/spamassassin/spamassassin.install')
-rw-r--r--testing/spamassassin/spamassassin.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/spamassassin/spamassassin.install b/testing/spamassassin/spamassassin.install
new file mode 100644
index 000000000..fae0264b2
--- /dev/null
+++ b/testing/spamassassin/spamassassin.install
@@ -0,0 +1,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
+}