From b90c525b28bcbc65201b049161b3aab1566e6886 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 28 Mar 2008 15:38:36 +0000 Subject: add check_starts_on_boot function --- web_wizard/Apache.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'web_wizard') diff --git a/web_wizard/Apache.pm b/web_wizard/Apache.pm index b35905a7..6e1972ac 100755 --- a/web_wizard/Apache.pm +++ b/web_wizard/Apache.pm @@ -248,12 +248,7 @@ EOF sub do_it { $::testing and return; my $in = 'interactive'->vnew('su', 'Apache'); - if (!services::starts_on_boot('httpd')) { - my $start_service = $in->ask_yesorno(N("Start %s server on boot", "httpd"), N("Would you like to start the %s service automatically on every boot?", "httpd"), 1); - if ($start_service) { - services::start_service_on_boot('httpd'); - } - } + check_starts_on_boot($in, 'httpd'); my $w = $in->wait_message(N("Apache server"), N("Configuring your system as Apache server ...")); my $that = "localhost"; -- cgit v1.2.1