rpms/nagios/devel nagios.spec,1.8,1.9

Michael Patrick McGrath (mmcgrath) fedora-extras-commits at redhat.com
Wed Feb 15 14:43:35 UTC 2006


Author: mmcgrath

Update of /cvs/extras/rpms/nagios/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4562/devel

Modified Files:
	nagios.spec 
Log Message:
Had a bad scriptlet, on upgrade nagios would uninstall and reinstall itself from chkconfig.
NOTE: Upgrading to this will still cause nagios to be un and reinstalled.  But it won't happen
from here on out




Index: nagios.spec
===================================================================
RCS file: /cvs/extras/rpms/nagios/devel/nagios.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- nagios.spec	14 Feb 2006 13:05:27 -0000	1.8
+++ nagios.spec	15 Feb 2006 14:43:35 -0000	1.9
@@ -1,6 +1,6 @@
 Name: nagios
 Version: 2.0
-Release: 0.5.rc2%{?dist}
+Release: 0.6.rc2%{?dist}
 Summary: Host/service/network monitoring program
 
 Group: Applications/System
@@ -115,8 +115,10 @@
 %{_sbindir}/useradd -d %{_localstatedir}/spool/%{name} -r -s /sbin/nologin nagios 2> /dev/null || :
 
 %preun
-/sbin/service nagios stop > /dev/null 2>&1 || :
-/sbin/chkconfig --del %{name} || :
+if [ $1 = 0 ]; then
+	/sbin/service nagios stop > /dev/null 2>&1 || :
+	/sbin/chkconfig --del %{name} || :
+fi
 
 %post
 /sbin/chkconfig --add %{name} || :
@@ -154,6 +156,9 @@
 %{_includedir}/%{name}
 
 %changelog
+* Wed Feb 15 2006 Mike McGrath <imlinux at gmail.com> 2.0-0.6.rc2
+-Upgrade no longer uninstalls Nagios from chkconfig
+
 * Tue Feb 14 2006 Mike McGrath <imlinux at gmail.com> 2.0-0.5.rc2
 -Rebuild for Fedora Extras 5
 




More information about the scm-commits mailing list