rpms/nagios/FC-3 nagios.spec,1.5,1.6

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


Author: mmcgrath

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

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/FC-3/nagios.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- nagios.spec	10 Feb 2006 04:42:12 -0000	1.5
+++ nagios.spec	15 Feb 2006 14:43:23 -0000	1.6
@@ -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 09 2006 Mike McGrath <imlinux at gmail.com> 2.0-0.5.rc2
 - Made /private/* group owner Nagios.  This fixes SIGHUP config read issue.
 




More information about the scm-commits mailing list