summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xproxy_wizard/Squid.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm
index 107b8902..801e9e7c 100755
--- a/proxy_wizard/Squid.pm
+++ b/proxy_wizard/Squid.pm
@@ -233,6 +233,12 @@ sub port {
sub do_it {
$::testing and return;
my $in = 'interactive'->vnew('su', 'Squid Config');
+ if (!services::starts_on_boot('squid')) {
+ my $start_httpd = $in->ask_yesorno(N("Start squid server on boot"), N("Would you like to start the squid service automatically on every boot ?"), 1);
+ if ($start_httpd) {
+ run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'squid', 'on');
+ }
+ }
my $w = $in->wait_message(N("Squid proxy"), N("Configuring your system as a Proxy server..."));
my $file="/etc/squid/squid.conf";
-f $file and MDK::Common::cp_af($file, $file.".orig");