Bug 212133 - heartbeat removes unconditionally init-scripts when updating
Summary: heartbeat removes unconditionally init-scripts when updating
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: heartbeat
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joost Soeterbroek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-25 09:23 UTC by Dirk Nehring
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-10-29 11:30:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dirk Nehring 2006-10-25 09:23:35 UTC
Description of problem:
Package does not check the installation status when upgrading.

Version-Release number of selected component (if applicable):


How reproducible:
Update to a newer version

Steps to Reproduce:
1. rpm -vhU heartbeat

Additional info:

The spec file should check if it is an update or if it is an deinstallation.
When updating, "chkconfig --del" is executed unconditionally which breaks
existing systems.

Proposed Fix:

-----------------------
%preun
if [ $1 = 0 ] ; then
        service hearbeat stop
        /sbin/chkconfig --del hearbeat
fi

%postun
if [ "$1" -ge "1" ] ; then
        service heartbeat condrestart
fi
-----------------------

Comment 1 Dirk Nehring 2006-10-25 09:26:22 UTC
uups, small typo in the proposed script (hearbeat)

Comment 2 Joost Soeterbroek 2006-10-29 11:30:27 UTC
fixed in 2.0.7-3


Note You need to log in before you can comment on or make changes to this bug.