#!/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 > /dev/null