Use systemd post install scriptlets

This commit is contained in:
rhatdan 2012-09-17 12:37:51 -04:00
parent 775d48fd41
commit 6e9d4c92ea

View File

@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.1.13
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
Group: System Environment/Base
# Based on git repository with tag 20101221
@ -317,21 +317,13 @@ The policycoreutils-restorecond package contains the restorecond service.
%{_mandir}/ru/man8/restorecond.8*
%post restorecond
if [ $1 -eq 1 ] ; then
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%systemd_post restorecond.service
%preun restorecond
if [ $1 = 0 ]; then
/usr/bin/systemctl --no-reload restorecond.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop restorecond.service > /dev/null 2>&1 || :
fi
%systemd_reun restorecond.service
%postun restorecond
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
/usr/bin/systemctl try-restart restorecond.service >/dev/null 2>&1 || :
fi
%systemd_postun_with_restart restorecond.service
%triggerun -- restorecond < 2.0.86-13
%{_bindir}/systemd-sysv-convert --save restorecond >/dev/null 2>&1 ||:
@ -340,6 +332,9 @@ fi
%{_bindir}/systemctl try-restart restorecond.service >/dev/null 2>&1 || :
%changelog
* Mon Sep 16 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.12-2
- Use systemd post install scriptlets
* Thu Sep 13 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.12-1
- Update to upstream
* genhomedircon: manual page improvements