From 22b13a20f3015b8b679d86cc802dd70ad349aff1 Mon Sep 17 00:00:00 2001 From: damien Date: Mon, 12 Mar 2001 13:11:52 +0000 Subject: added $::isInstall --- perl-install/install_steps_interactive.pm | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 2de4eceef..104ed2542 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -803,9 +803,9 @@ sub setRootPassword { return if $o->{security} < 1 && !$clicked; - $o->set_help("setRootPassword", - if_($::expert, "setRootPasswordMd5"), - if_($::expert, "setRootPasswordNIS")); + $::isInstall and $o->set_help("setRootPassword", + if_($::expert, "setRootPasswordMd5"), + if_($::expert, "setRootPasswordNIS")); $o->ask_from_entries_refH_powered( { @@ -826,12 +826,11 @@ sub setRootPassword { ), ]) or return; - $o->{authentication}{NIS} &&= $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 }, - ]) if $nis; + 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} = ''; } install_steps::setRootPassword($o); } -- cgit v1.2.1