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

This commit is contained in:
Nalin Dahyabhai 2011-07-14 15:15:35 -04:00
parent 05899fa18a
commit ac1292bfbd

View File

@ -149,7 +149,7 @@ else
source=/etc/ldap.conf source=/etc/ldap.conf
fi fi
target=/etc/nslcd.conf 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. # Try to make sure we only do this the first time.
echo "# $comment" >> $target echo "# $comment" >> $target
if egrep -q '^uri[[:blank:]]' $source 2> /dev/null ; then if egrep -q '^uri[[:blank:]]' $source 2> /dev/null ; then
@ -250,6 +250,10 @@ exit 0
%endif %endif
%changelog %changelog
* Thu Jul 14 2011 Nalin Dahyabhai <nalin@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@redhat.com> 0.7.13-6 * Wed Jul 13 2011 Nalin Dahyabhai <nalin@redhat.com> 0.7.13-6
- convert to systemd-native startup (#716997) - convert to systemd-native startup (#716997)