Fix uninstall script to remove dangling symlink
This fix removes a dangling symlink to mdmonitor-takeover.service, if the mdadm package is uninstalled from the system. Resolves bz828354 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
parent
96e611c399
commit
d45e40da1b
12
mdadm.spec
12
mdadm.spec
@ -1,7 +1,7 @@
|
||||
Summary: The mdadm program controls Linux md devices (software RAID arrays)
|
||||
Name: mdadm
|
||||
Version: 3.2.5
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
||||
Source1: mdmonitor.init
|
||||
Source2: raid-check
|
||||
@ -91,8 +91,8 @@ fi
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
/bin/systemctl --no-reload disable mdmonitor.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop mdmonitor.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl --no-reload disable mdmonitor.service mdmonitor-takeover.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop mdmonitor.service mdmonitor-takeover.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
@ -128,6 +128,12 @@ fi
|
||||
%{_initrddir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jun 13 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.5-2
|
||||
- Fix uninstall script to remove dangling symlink to
|
||||
mdmonitor-takeover.service, if the mdadm package is uninstalled from
|
||||
the system.
|
||||
- Resolves bz828354
|
||||
|
||||
* Mon May 21 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.5-1
|
||||
- Upgrade to mdadm-3.2.5
|
||||
- Resolves bz822850
|
||||
|
Loading…
Reference in New Issue
Block a user