From 6e2ee95c43c20e680e0d74066e08142f09d52690 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Dec 07 2011 11:57:20 +0000 Subject: update pam config in post install phase --- diff --git a/ecryptfs-utils.spec b/ecryptfs-utils.spec index 56f720a..f67bca6 100644 --- a/ecryptfs-utils.spec +++ b/ecryptfs-utils.spec @@ -5,7 +5,7 @@ Name: ecryptfs-utils Version: 93 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The eCryptfs mount helper and support libraries Group: System Environment/Base License: GPLv2+ @@ -165,9 +165,19 @@ fi %pre groupadd -r -f ecryptfs -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +if [ $1 -eq 1 ] ; then + # Initial installation + authconfig --enableecryptfs --update +fi -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig +if [ $1 -eq 0 ] ; then + # Package removal, not upgrade + authconfig --disableecryptfs --update +fi %clean rm -rf $RPM_BUILD_ROOT @@ -247,6 +257,9 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/ecryptfs-utils/_libecryptfs.so %changelog +* Wed Dec 07 2011 Michal Hlavinka - 93-2 +- update pam config in post install phase + * Mon Oct 31 2011 Michal Hlavinka - 93-1 - updated to v. 93