From fa1cea86740dd7217bb733eb845f1da7095ccfa6 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 7 Apr 2017 15:00:01 +0200 Subject: SPEC: Move kcm scriptlets to systemd section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Fabiano FidĂȘncio --- contrib/sssd.spec.in | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'contrib') diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 270448d3d..550537865 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1316,6 +1316,18 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us %postun dbus %systemd_postun_with_restart sssd-ifp.service +%if (0%{?with_kcm} == 1) +%post kcm +%systemd_post sssd-kcm.socket + +%preun kcm +%systemd_preun sssd-kcm.socket + +%postun kcm +%systemd_postun_with_restart sssd-kcm.socket +%systemd_postun_with_restart sssd-kcm.service +%endif + %else # sysv %post common @@ -1366,18 +1378,6 @@ fi %postun -n libsss_simpleifp -p /sbin/ldconfig -%if (0%{?with_kcm} == 1) -%post kcm -%systemd_post sssd-kcm.socket - -%preun kcm -%systemd_preun sssd-kcm.socket - -%postun kcm -%systemd_postun_with_restart sssd-kcm.socket -%systemd_postun_with_restart sssd-kcm.service -%endif - %changelog * Mon Mar 15 2010 Stephen Gallagher - @PACKAGE_VERSION@-0@PRERELEASE_VERSION@ - Automated build of the SSSD -- cgit