From 736d48179c80d8f5a1dcf938edc17d45a3024812a635b7035da43077e1ce7344 Mon Sep 17 00:00:00 2001 From: Christian Kornacker Date: Thu, 12 Jun 2014 14:36:57 +0000 Subject: [PATCH] - fix %postun to not erroneously remove sss pam module OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=118 --- sssd.changes | 5 +++++ sssd.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sssd.changes b/sssd.changes index d4077e6..29ced7e 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 14:18:30 UTC 2014 - ckornacker@suse.com + +- fix %postun to not erroneously remove sss pam module + ------------------------------------------------------------------- Tue May 27 16:56:42 UTC 2014 - crrodriguez@opensuse.org diff --git a/sssd.spec b/sssd.spec index 5d1fa88..73c0380 100644 --- a/sssd.spec +++ b/sssd.spec @@ -371,13 +371,13 @@ rm -Rf "$b/usr/share/locale"/{fa_IR,ja_JP,lt_LT,ta_IN,vi_VN} %endif %postun +if [ "$1" == "0" ]; then + "%_sbindir/pam-config" -d --sss || :; +fi; /sbin/ldconfig %if 0%{?_unitdir:1} %service_del_postun sssd.service %endif -if [ "$1" == "0" ]; then - "%_sbindir/pam-config" -d --sss || :; -fi; %post -n libipa_hbac0 -p /sbin/ldconfig %postun -n libipa_hbac0 -p /sbin/ldconfig