blob: ac262c7083b13acfa4d5b8900cfc88f9975ca992 (
plain)
- #!/bin/sh
- # Based on this: http://saupdates.openprotect.com/
- # Install SARE GPG key
- if [ "$1" = "-i" ]; 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 amavis restart > /dev/null
- # Install cronjob
- if [ "$1" = "-i" ]; then
- ln -sf /etc/local-COMMON/spamassassin/sa-updateandimprove.sh /etc/cron.daily/local-sa-update
- fi
|