diff options
-rwxr-xr-x | spamassassin/sa-updateandimprove.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spamassassin/sa-updateandimprove.sh b/spamassassin/sa-updateandimprove.sh new file mode 100755 index 0000000..aec9913 --- /dev/null +++ b/spamassassin/sa-updateandimprove.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Based on this: http://saupdates.openprotect.com/ + +# Initialize only when forced +if [ "$1" = "-f" ]; then + TMPFILE=‘mktemp‘ + wget -O"$TMPFILE" http://saupdates.openprotect.com/pub.gpg + sa-update --import "$TMPFILE" + rm "$TMPFILE" +fi + +sa-update --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com --channel updates.spamassassin.org +invoke-rc.d spamassassin restart |