On Wed, 2018-01-10 at 15:23 +0000, RW wrote: > On Wed, 10 Jan 2018 15:10:52 +0000 > Martin Gregorie wrote: > > > > The update defaults to being run from /etc/cron.weekly/sa-update, > > which runs /usr/bin/sa-update without any other parameters and does > > nothing else except for decoding the exit code and mailing all > > output > > to root: I think its the standard SA script. > > I don't see it, it's probably redhat specific. Perhaps you could post > it. > here you go:
============================ sa_update ============================== #!/bin/bash # # Update the Spamassassin rules # sau=/usr/bin/sa-update if [ -x $sau ] then $sau err=$? case $err in 0) echo "Spamassassin rules update completed."; systemctl restart spamassassin; echo "Spamassassin restarted." ;; 1) echo "No Spamassassin rule updates available.";; 2) echo "Spamassassin rules updates available"; echo "Site pre files lint check failed."; echo "Fix the files and try again.";; *) echo "Spamassassin rules update failed: error=$err" esac else echo "Error: $sau does not exist" exit 0 fi ============================ sa_update ============================== Martin