Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/debian/libnss-ldapd.postinst
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-01-08 16:42:11 +0100
committerArthur de Jong <arthur@arthurdejong.org>2007-01-08 16:42:11 +0100
commit5795703dcaf16d896a679f26f41a02ad51d1cc88 (patch)
tree86f72067c1101aa6df1148f11c28e0f7f716a00e /debian/libnss-ldapd.postinst
parent805991cd6c664d07dc29b0ac88bbde03fe8e6cc1 (diff)
only modify nsswitch databases we support, leave everything else alone (e.g. automount)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@212 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'debian/libnss-ldapd.postinst')
-rw-r--r--debian/libnss-ldapd.postinst4
1 files changed, 1 insertions, 3 deletions
diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst
index 04f7285..746ca0b 100644
--- a/debian/libnss-ldapd.postinst
+++ b/debian/libnss-ldapd.postinst
@@ -216,9 +216,7 @@ then
# modify /etc/nsswitch.conf
db_get libnss-ldapd/nsswitch
enablenss=`echo "$RET" | sed 's/,//g'`
- allnss=`sed -n 's/^\([a-z]*\):.*$/\1/p' /etc/nsswitch.conf`
- allnss=`echo $allnss $enablenss | sed 's/ /\n/g' | sort -u`
- for n in $allnss
+ for n in aliases ethers group hosts netgroup networks passwd protocols rpc services shadow
do
if echo ' '$enablenss' ' | grep -q ' '$n' '
then