[Lunar-commits] <moonbase> spamassassin: added post install update to make SA correctly working

Zbigniew Luszpinski zbiggy at lunar-linux.org
Mon Apr 26 20:38:23 CEST 2010


commit fe70aae1c69da2722141d8012a5b41f68b17326c
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Mon Apr 26 20:38:23 2010 +0200

    spamassassin: added post install update to make SA correctly working
---
 mail/spamassassin/POST_INSTALL |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/mail/spamassassin/POST_INSTALL b/mail/spamassassin/POST_INSTALL
new file mode 100644
index 0000000..99a210d
--- /dev/null
+++ b/mail/spamassassin/POST_INSTALL
@@ -0,0 +1,7 @@
+  if [ -x `which sa-update` ] ; then
+    sa-check_spamd > /dev/null
+    STATUSSD=$?
+    [ $STATUSSD != '0' ] && service spamd start > /dev/null
+    sa-update && service spamd restart
+    [ $STATUSSD != '0' ] && service spamd stop > /dev/null
+  fi


More information about the Lunar-commits mailing list