Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
#!/bin/sh
#
# Updates SA, which is run by AMaViS with new rules

# Update the link to the correct version
VERSION=`grep -m 1 -E 'VERSION = ' /usr/share/perl5/Mail/SpamAssassin.pm | cut -f2 -d\"`
rm /var/lib/spamassassin/current
ln -s /var/lib/spamassassin/${VERSION} /var/lib/spamassassin/current

# Update from http://saupdatesaupdates.openprotect.com & updates.spamassassin.org
# Restart AMaViS so that it reads in the new rules
sa-update --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com --gpgkey 26C900A46DD40CD5AD24F6D7DEE01987265FA05B --channel updates.spamassassin.org && /etc/init.d/amavis restart >/dev/null

...