diff options
author | Florent Villard <warly@mandriva.com> | 2003-09-15 11:10:22 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-09-15 11:10:22 +0000 |
commit | 724f7a8d02d6cd48b108a8f2cfbb98feeecae2a7 (patch) | |
tree | 2e796bb5e0cb5fb582b6f48563696337b6bea18d /drakwizard.pl | |
parent | 5cbe71386657f4f045cbd59137f5e1d702a93292 (diff) | |
download | drakwizard-724f7a8d02d6cd48b108a8f2cfbb98feeecae2a7.tar drakwizard-724f7a8d02d6cd48b108a8f2cfbb98feeecae2a7.tar.gz drakwizard-724f7a8d02d6cd48b108a8f2cfbb98feeecae2a7.tar.bz2 drakwizard-724f7a8d02d6cd48b108a8f2cfbb98feeecae2a7.tar.xz drakwizard-724f7a8d02d6cd48b108a8f2cfbb98feeecae2a7.zip |
fix apache
fix dns_client adding a \n at the end of the line of the configuration file
fix squid
fix inn
fix ftp
fix samba
add a init function in drakwizard.pl for case such as apache which need to initialize some parameters
separate region/country in ntp wizard
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-x | drakwizard.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drakwizard.pl b/drakwizard.pl index c17525e0..05c2e9c4 100755 --- a/drakwizard.pl +++ b/drakwizard.pl @@ -79,6 +79,7 @@ sub wizard { my $next = 'welcome'; my @steps; check_rpm($o->{needed_rpm}) if $o->{needed_rpm}; + defined $o->{init} and &{$o->{init}}; while (1) { undef $::Wizard_no_previous; undef $::Wizard_no_cancel; @@ -91,7 +92,9 @@ sub wizard { my $data2; foreach my $d (@$data) { $d->{fixed_val} and $d->{val} = ${$d->{fixed_val}}; - $d->{fixed_list} and $d->{list} = ${$d->{fixed_list}}; + if ($d->{fixed_list}) { + $d->{list} = $d->{fixed_list}; + } if (ref $d->{boolean_list} && ref ${$d->{boolean_list}}) { my $i; foreach (@{${$d->{boolean_list}}}){ @@ -121,6 +124,7 @@ sub check_rpm { if (!$in->do_pkgs->is_installed($rpm)) { if ($in->ask_okcancel("error", N("%s is not installed\nClick \"Next\" to install or \"Cancel\" to quit", c::from_utf8($rpm)))) { $::testing and next; + print "\nINSTALLING $rpm\n"; if (!$in->do_pkgs->install($rpm)) { $::Wizard_finished = 1; $in->ask_okcancel("error", N("installation failed")); |