changeset 241:315c53fbbb77

chkconfig -del in %%preun, not %%postun
author Carl Byington <carl@five-ten-sg.com>
date Fri, 19 Nov 2010 10:34:33 -0800
parents 536d59c3a7b8
children d8ee4c97b9ab
files dnsbl.spec.in
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dnsbl.spec.in	Tue Mar 30 10:05:35 2010 -0700
+++ b/dnsbl.spec.in	Fri Nov 19 10:34:33 2010 -0800
@@ -3,7 +3,7 @@
 Summary:            Sendmail milter for spam control
 Name:               @PACKAGE@
 Version:            @VERSION@
-Release:            1%{?dist}
+Release:            2%{?dist}
 License:            GPLv3+
 Group:              System Environment/Daemons
 Source:             http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
@@ -72,10 +72,10 @@
 
 %preun
 [ $1 = 0 ] && /sbin/service %{name} stop || :
+[ $1 = 0 ] && /sbin/chkconfig --del %{name} || :
 
 
 %postun
-[ $1 = 0 ] && /sbin/chkconfig --del %{name}
 [ $1 = 0 ] && userdel %{name} || :
 
 
@@ -96,6 +96,9 @@
 
 
 %changelog
+* Thu Jul 22 2010 Carl Byington <carl@five-ten-sg.com> - 6.25-2
+- chkconfig -del in %%preun, not %%postun
+
 * Tue Sep 29 2009 Carl Byington <carl@five-ten-sg.com> - 6.25-1
 - Add surbl checks on the smtp helo value, client reverse dns name,
   and mail from domain name.