From 208d67b97178d93704a33149a15e3e2cf52af2c3 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 7 Sep 2005 09:29:42 +0000 Subject: test nisdomainame value, fix missing banner --- nisautofs_wizard/Nisautofs.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm index b85a628c..0f9229e6 100644 --- a/nisautofs_wizard/Nisautofs.pm +++ b/nisautofs_wizard/Nisautofs.pm @@ -64,7 +64,7 @@ my $o = { test_host_domain($HOST, $NISDOMAIN); }, }; - +$::Wizard_pix_up = "/usr/share/mcc/themes/default/nisautofs.png"; $o->{pages} = { welcome => { name => N("NIS server with autofs map") . "\n\n" . N("Setup a NIS server with autofs map, auto.home and auto.master files.") . "\n\n" . N("Users automatically mount their home directory from server, when they log on a NIS client computer network."), @@ -84,8 +84,8 @@ $o->{pages} = { mkdir_p($o->{var}{HOMENIS}); } elsif (!-d $o->{var}{HOMENIS}) { $::in->ask_warn(N("Warning"), N("Directory doesn't exist. Please create it manually.")); - return 0; - } + return 0; } + if ($o->{var}{NISDOMAIN} eq '(none)' || !$o->{var}{NISDOMAIN}) { return 'error_nisd' } }, next => 'summaryserver', }, @@ -106,8 +106,8 @@ $o->{pages} = { }, error_nisd => { name => N("Error: nisdomainname should not be 'none' or 'localdomain'.") . "\n\n" . N("Please adjust it."), - end => 1, - next => 0, + no_back => 1, + next => 'nis_server', }, endserver => { name => N("Congratulations"), -- cgit v1.2.1