From 16815663c893dc131728bdde4864a4c697214771 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 17 Sep 2003 10:18:12 +0000 Subject: run nisdomainname et ypbind so that nis is correctly set up *now*, not at next reboot. TODO: also do it during install since nis can be useful to resolve domain names. Not done because 9.2-RC --- perl-install/any.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-install/any.pm b/perl-install/any.pm index 9f0d16f10..89dda8991 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -1063,6 +1063,11 @@ sub set_authentication { } "$::prefix/etc/yp.conf"; require network; network::write_conf("$::prefix/etc/sysconfig/network", $netc); + + $when_network_is_up->(sub { + run_program::rooted($::prefix, 'nisdomainname', $domain); + run_program::rooted($::prefix, 'service', 'ypbind', 'restart'); + }) if !$::isInstall; #- TODO: also do it during install since nis can be useful to resolve domain names. Not done because 9.2-RC } elsif ($winbind) { my $domain = $netc->{WINDOMAIN}; $domain =~ tr/a-z/A-Z/; -- cgit v1.2.1