#!/bin/sh
# Dinko Korunic <kreator@carnet.hr>
+# Modified by Ivan Rako <Ivan.Rako@CARNET.hr>
exec 1>> /var/log/sa-update.log
exec 2>&1
sa-update \
--channelfile /etc/spamassassin/sa-update.channels \
--allowplugins \
- --gpgkey 6C6191E3 \
- --gpgkey 24F434CE \
- --gpgkey BDE9DC10 || \
+ --gpghomedir /etc/spamassassin/sa-update-keys || \
( echo "$(date +'%d-%m-%Y %T'): No new rules. Exiting now."; exit )
fi