slackbuilds_ponce/network/spamassassin/sa-update.sh

8 lines
150 B
Bash
Raw Normal View History

#!/bin/sh
/usr/bin/sa-update > /dev/null 2>&1
if [ $? -eq 0 ]; then
[ -x /etc/rc.d/rc.spamd ] && /etc/rc.d/rc.spamd restart > /dev/null 2>&1
fi