From fa1cea86740dd7217bb733eb845f1da7095ccfa6 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: May 03 2017 07:53:02 +0000 Subject: SPEC: Move kcm scriptlets to systemd section Reviewed-by: Fabiano FidĂȘncio --- diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 270448d..5505378 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