From 0bc68b8ae76f6cef5ccd2a33d5ab6b93246a4995 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 17 Apr 2001 15:02:09 +0000 Subject: (setRootPassword): set NIS to broadcast when NIS asked. Empty NIS still means no NIS --- perl-install/install_steps_interactive.pm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 869a26d6e..e1cad7461 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -908,11 +908,14 @@ sub setRootPassword { ), ]) or return; - if ($nis) { $o->ask_from_entries_refH('', - _("Authentification NIS"), - [ { label => _("NIS Domain"), val => \ ($o->{netc}{NISDOMAIN} ||= $o->{netc}{DOMAINNAME}) }, - { label => _("NIS Server"), val => \$o->{authentication}{NIS}, list => ["broadcast"], not_edit => 0 }, - ]); } else { $o->{authentication}{NIS} = ''; } + if ($nis) { + $o->{authentication}{NIS} = 'broadcast'; + $o->ask_from_entries_refH('', + _("Authentification NIS"), + [ { label => _("NIS Domain"), val => \ ($o->{netc}{NISDOMAIN} ||= $o->{netc}{DOMAINNAME}) }, + { label => _("NIS Server"), val => \$o->{authentication}{NIS}, list => ["broadcast"], not_edit => 0 }, + ]); + } else { $o->{authentication}{NIS} = '' } install_steps::setRootPassword($o); } -- cgit v1.2.1