#!/bin/sh set -e # Compile, if rules have previously been compiled, and it's possible if [ -x /usr/bin/re2c -a -x /usr/bin/sa-compile -a -d /var/lib/spamassassin/compiled ]; then echo "Running sa-compile (may take a long time)" sa-compile --quiet fi # Work around broken key caused by gpg upgrade if [ -f /etc/spamassassin/sa-update-keys/pubring.gpg -a -f /usr/share/doc/spamassassin/GPG.KEY ]; then sa-update --import /usr/share/doc/spamassassin/GPG.KEY fi # Automatically added by dh_installinit if [ -x "/etc/init.d/spamassassin" ]; then update-rc.d spamassassin defaults 19 21 >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d spamassassin start || exit $? else /etc/init.d/spamassassin start || exit $? fi fi # End automatically added section