From 3d602514ce1c3a9c8bf5baadd1371ff4121a42fb Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Tue, 7 Sep 2004 07:53:11 +0000 Subject: fix pb of nsswitch.conf file --- nisautofs_wizard/Nisautofs.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nisautofs_wizard') diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm index 9d2023c3..137c2c55 100644 --- a/nisautofs_wizard/Nisautofs.pm +++ b/nisautofs_wizard/Nisautofs.pm @@ -346,6 +346,10 @@ sub do_it_client { update_yp(chomp_($o->{var}{NISDOMAIN}), chomp_($o->{var}{NISSERVER})); # update conf file update_network(); + # update nsswitch.conf + Substinfile { + s|automount:.*|automount: files nisplus nis|; + } "/etc/nsswitch.conf"; needed_service($_) foreach qw(ypbind autofs); undef $w; check_started($_) foreach qw(ypbind autofs); -- cgit v1.2.1