- switch to only munging the contents of /etc/nslcd.conf on the very first install (#706454)
This commit is contained in:
parent
05899fa18a
commit
ac1292bfbd
@ -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@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
|
||||
- convert to systemd-native startup (#716997)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user