[nss-pam-ldapd] - switch to only munging the contents of /etc/nslcd.conf on the very first install (#706454)

Nalin Dahyabhai nalin at fedoraproject.org
Thu Jul 14 20:46:42 UTC 2011


commit ac1292bfbd52d73b7e79eeff2d816e0e4af672ea
Author: Nalin Dahyabhai <nalin at dahyabhai.net>
Date:   Thu Jul 14 15:15:35 2011 -0400

    - switch to only munging the contents of /etc/nslcd.conf on the very first install (#706454)

 nss-pam-ldapd.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/nss-pam-ldapd.spec b/nss-pam-ldapd.spec
index 5d797ea..f87f5d5 100644
--- a/nss-pam-ldapd.spec
+++ b/nss-pam-ldapd.spec
@@ -149,7 +149,7 @@ else
 	source=/etc/ldap.conf
 fi
 target=/etc/nslcd.conf
-if ! grep -q -F "# $comment" $target 2> /dev/null ; then
+if test "$1" -eq "1" && ! grep -q -F "# $comment" $target 2> /dev/null ; then
 	# Try to make sure we only do this the first time.
 	echo "# $comment" >> $target
 	if egrep -q '^uri[[:blank:]]' $source 2> /dev/null ; then
@@ -250,6 +250,10 @@ exit 0
 %endif
 
 %changelog
+* Thu Jul 14 2011 Nalin Dahyabhai <nalin at redhat.com> 0.7.13-7
+- switch to only munging the contents of /etc/nslcd.conf on the very first
+  install (#706454)
+
 * Wed Jul 13 2011 Nalin Dahyabhai <nalin at redhat.com> 0.7.13-6
 - convert to systemd-native startup (#716997)
 


More information about the scm-commits mailing list