summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xproxy_wizard/Squid.pm2
-rwxr-xr-xweb_wizard/Apache.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm
index 5eec68f3..b7ce3ee3 100755
--- a/proxy_wizard/Squid.pm
+++ b/proxy_wizard/Squid.pm
@@ -236,7 +236,7 @@ sub do_it {
if (!services::starts_on_boot('squid')) {
my $start_httpd = $in->ask_yesorno(N("Start %s server on boot", "squid"), N("Would you like to start the %s service automatically on every boot?", "squid"), 1);
if ($start_httpd) {
- run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'squid', 'on');
+ services::start_service_on_boot('squid');
}
}
my $w = $in->wait_message(N("Squid proxy"), N("Configuring your system as a Proxy server..."));
diff --git a/web_wizard/Apache.pm b/web_wizard/Apache.pm
index 20077852..30a2e772 100755
--- a/web_wizard/Apache.pm
+++ b/web_wizard/Apache.pm
@@ -251,7 +251,7 @@ sub do_it {
if (!services::starts_on_boot('httpd')) {
my $start_httpd = $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_httpd) {
- run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'httpd', 'on');
+ services::start_service_on_boot('httpd');
}
}
my $w = $in->wait_message(N("Apache server"), N("Configuring your system as Apache server ..."));