rpms/heartbeat/devel heartbeat.spec,1.9,1.10

Joost Soeterbroek (jsoeterb) fedora-extras-commits at redhat.com
Sun Oct 29 11:08:59 UTC 2006


Author: jsoeterb

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

Modified Files:
	heartbeat.spec 
Log Message:
* Sun Oct 29 2006 Joost Soeterbroek <fedora at soeterbroek.com> - 2.0.7-3
- fix preun, postun to check for upgrade (#212133)



Index: heartbeat.spec
===================================================================
RCS file: /cvs/extras/rpms/heartbeat/devel/heartbeat.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- heartbeat.spec	30 Aug 2006 19:32:48 -0000	1.9
+++ heartbeat.spec	29 Oct 2006 11:08:28 -0000	1.10
@@ -6,7 +6,7 @@
 Summary:          Heartbeat subsystem for High-Availability Linux
 Name:             heartbeat
 Version:          2.0.7
-Release:          2%{?dist}
+Release:          3%{?dist}
 License:          GPL/LGPL
 URL:              http://linux-ha.org/
 Group:            System Environment/Daemons
@@ -157,9 +157,15 @@
 /sbin/chkconfig --add heartbeat
 
 %preun
-/sbin/chkconfig --del heartbeat
+if [ $1 = 0 ] ; then
+    /sbin/service heartbeat stop
+    /sbin/chkconfig --del heartbeat
+fi
 
 %postun 
+if [ "$1" -ge "1" ] ; then
+    /sbin/service heartbeat condrestart
+fi
 /sbin/ldconfig
 test "$1" != 0 || /usr/sbin/fedora-userdel  %{uname} &>/dev/null || :
 test "$1" != 0 || /usr/sbin/fedora-groupdel %{gname} &>/dev/null || :
@@ -295,6 +301,9 @@
 %{_libdir}/*.so
 
 %changelog
+* Sun Oct 29 2006 Joost Soeterbroek <fedora at soeterbroek.com> - 2.0.7-3
+- fix preun, postun to check for upgrade (#212133)
+
 * Wed Aug 30 2006 Joost Soeterbroek <fedora at soeterbroek.com> - 2.0.7-2
 - rebuild for Fedora Extras 6
 




More information about the scm-commits mailing list