From 685e9042abc52abf01eaae2e60d355c934b3828a Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Thu, 7 Apr 2005 12:21:24 +0000 Subject: use cp_data instead of run_command --- installsrv_wizard/Installsrv.pm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/installsrv_wizard/Installsrv.pm b/installsrv_wizard/Installsrv.pm index 33e5ab71..a70a60db 100644 --- a/installsrv_wizard/Installsrv.pm +++ b/installsrv_wizard/Installsrv.pm @@ -92,10 +92,11 @@ $o->{pages} = { { label => "Destination directory:", fixed_val => \$o->{var}{DESTDIR} }, { label => N("Enable NFS install server:"), fixed_val => \$o->{var}{nfs} }, { label => N("Enable HTTP install server:"), fixed_val => \$o->{var}{http} }, - ], - complete => \&do_it, - next => 'wait', - }, + ], + post => \&do_it, + no_back => 1, + next => 'end', + }, wait => { name => N("Configuring your system, please wait..."), next => 'end', @@ -145,15 +146,17 @@ sub cp_data { sub do_it { return if $::testing; + my $in = 'interactive'->vnew('su', 'install'); + my $w = $in->wait_message(N("Copying data"), N("Configuring your system as Linux install server...")); my $S = $o->{var}{SOURCEDIR}; my $D = $o->{var}{DESTDIR}; if (! -d $D) { mkdir_p($D) } - run_command_and_log("cp -avf $S/* $D", "Copying data $S/* $D"); + cp_data($o->{var}{SOURCEDIR}, $o->{var}{DESTDIR}); add_install_dir(); add_http_link($o->{var}{DESTDIR}); - return 0; + undef $w; } - + sub new { my ($class) = @_; bless { -- cgit v1.2.1