From 911102ac4ada1aa975a2cfbf4401a1255ad41198 Mon Sep 17 00:00:00 2001 From: Joost Soeterbroek Date: Oct 29 2006 11:28:34 +0000 Subject: fix preun, postun to check for upgrade (#212133) --- diff --git a/heartbeat.spec b/heartbeat.spec index 56f62c4..a2cdaf2 100644 --- a/heartbeat.spec +++ b/heartbeat.spec @@ -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 @@ rm -rf $RPM_BUILD_DIR/heartbeat-%{version} /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 @@ test "$1" != 0 || /usr/sbin/fedora-groupdel %{gname} &>/dev/null || : %{_libdir}/*.so %changelog +* Sun Oct 29 2006 Joost Soeterbroek - 2.0.7-3 +- fix preun, postun to check for upgrade (#212133) + * Wed Aug 30 2006 Joost Soeterbroek - 2.0.7-2 - rebuild for Fedora Extras 6