X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fcron.daily;h=c577e10eea7a37be31d15c37fb3c6fdf799b868a;hb=c59439c108f7b2c1df699111f62a7a3483d2896b;hp=5ec40d41df78e34c5e187b9c9374eae598bebb77;hpb=7cf4d17063560538621c8d04d9fa33d5b1120733;p=spamassassin-cn.git diff --git a/debian/cron.daily b/debian/cron.daily index 5ec40d4..c577e10 100755 --- a/debian/cron.daily +++ b/debian/cron.daily @@ -7,30 +7,26 @@ exec 2>&1 # announce echo "$(date +'%d-%m-%Y %T'): Fetching new SA rules..." -# update SA from normal SA updates + SARE channels +# update SA if [ -e /etc/spamassassin/sa-update.channels ]; then sa-update \ --channelfile /etc/spamassassin/sa-update.channels \ - --gpgkey 856AA88A \ - --gpgkey 24F434CE \ - --gpgkey BDE9DC10 || \ + --allowplugins \ + --gpghomedir /etc/spamassassin/sa-update-keys || \ ( echo "$(date +'%d-%m-%Y %T'): No new rules. Exiting now."; exit ) fi # restart of services echo "$(date +'%d-%m-%Y %T'): Will restart services due to updated rules..." -if [ -x /usr/sbin/invoke-rc.d ]; then - [ -x /etc/init.d/spamassassin ] && \ - invoke-rc.d --quiet spamassassin restart - [ -x /etc/init.d/amavis ] && \ - invoke-rc.d --quiet amavis restart - [ -x /etc/init.d/postfix ] && \ - invoke-rc.d --quiet postfix restart -else - [ -x /etc/init.d/spamassassin ] && \ - /etc/init.d/spamassassin restart - [ -x /etc/init.d/amavis ] && \ - /etc/init.d/amavis restart - [ -x /etc/init.d/postfix ] && \ - /etc/init.d/postfix restart + +if [ -x /etc/init.d/spamassassin ]; then + service spamassassin restart +fi + +if [ -x /etc/init.d/amavis ]; then + service amavis restart +fi + +if [ -x /etc/init.d/postfix ]; then + service postfix restart fi