From 41d0a26437dd06eb5e15d84299831507b000078e Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 21 Jun 2006 10:22:46 +0000 Subject: fix ask_warn for nisautofs wizard --- nisautofs_wizard/Nisautofs.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nisautofs_wizard') diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm index 8e3b1dad..39742e7e 100644 --- a/nisautofs_wizard/Nisautofs.pm +++ b/nisautofs_wizard/Nisautofs.pm @@ -32,6 +32,7 @@ use MDK::Wizard::Wizcommon; # test root capa my $wiz = new MDK::Wizard::Wizcommon; +my $in = interactive->vnew; #my $NISDOMAIN = $wiz->{net}->network_get("NISDOMAIN"); my $NISDOMAIN = chomp_(`nisdomainname`); @@ -92,8 +93,8 @@ $o->{pages} = { if (!-d $o->{var}{HOMENIS} and $o->{var}{create_missing_directory}) { 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; } + $in->ask_warn(N("Warning"), N("Directory doesn't exist. Please create it manually.")); + return 1; } }, next => 'summaryserver', }, -- cgit v1.2.1