diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-09-17 10:18:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-09-17 10:18:12 +0000 |
commit | 16815663c893dc131728bdde4864a4c697214771 (patch) | |
tree | fc915cfaf20bdc72de0321bedb05ed94978cb237 /perl-install/any.pm | |
parent | 7287e78fddbbfcb76ef66edfbf16c7c64d193911 (diff) | |
download | drakx-backup-do-not-use-16815663c893dc131728bdde4864a4c697214771.tar drakx-backup-do-not-use-16815663c893dc131728bdde4864a4c697214771.tar.gz drakx-backup-do-not-use-16815663c893dc131728bdde4864a4c697214771.tar.bz2 drakx-backup-do-not-use-16815663c893dc131728bdde4864a4c697214771.tar.xz drakx-backup-do-not-use-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.pm | 5 |
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/; |