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