only restart spamd if necessary after sa-update (#227756)
This commit is contained in:
parent
931bd14ce4
commit
9fb170c7e0
@ -2,6 +2,6 @@
|
||||
|
||||
sleep $(expr $RANDOM % 7200)
|
||||
echo SpamAssassin rule update begins at `date`
|
||||
/usr/bin/sa-update
|
||||
/etc/init.d/spamassassin condrestart
|
||||
# Only restart spamd if sa-update returns 0, meaning it updated the rules
|
||||
/usr/bin/sa-update && /etc/init.d/spamassassin condrestart
|
||||
echo
|
||||
|
@ -12,7 +12,7 @@
|
||||
Summary: Spam filter for email which can be invoked from mail delivery agents.
|
||||
Name: spamassassin
|
||||
Version: 3.1.7
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
License: Apache License
|
||||
Group: Applications/Internet
|
||||
URL: http://spamassassin.apache.org/
|
||||
@ -186,6 +186,9 @@ fi
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Wed Feb 07 2007 Warren Togami <wtogami@redhat.com> 3.1.7-8
|
||||
- only restart spamd if necessary after sa-update (#227756)
|
||||
|
||||
* Wed Feb 07 2007 Warren Togami <wtogami@redhat.com> 3.1.7-7
|
||||
- requires gnupg (#227738)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user