summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-09-17 10:18:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-09-17 10:18:12 +0000
commit16815663c893dc131728bdde4864a4c697214771 (patch)
treefc915cfaf20bdc72de0321bedb05ed94978cb237 /perl-install/any.pm
parent7287e78fddbbfcb76ef66edfbf16c7c64d193911 (diff)
downloaddrakx-16815663c893dc131728bdde4864a4c697214771.tar
drakx-16815663c893dc131728bdde4864a4c697214771.tar.gz
drakx-16815663c893dc131728bdde4864a4c697214771.tar.bz2
drakx-16815663c893dc131728bdde4864a4c697214771.tar.xz
drakx-16815663c893dc131728bdde4864a4c697214771.zip
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
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 5 insertions, 0 deletions
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/;