From ac1292bfbd52d73b7e79eeff2d816e0e4af672ea Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 14 Jul 2011 15:15:35 -0400 Subject: [PATCH] - switch to only munging the contents of /etc/nslcd.conf on the very first install (#706454) --- nss-pam-ldapd.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 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 0.7.13-6 - convert to systemd-native startup (#716997)