summaryrefslogtreecommitdiffstats
path: root/proxy_wizard
diff options
context:
space:
mode:
authorNicolas Vigier <nvigier@mandriva.com>2008-03-26 10:37:11 +0000
committerNicolas Vigier <nvigier@mandriva.com>2008-03-26 10:37:11 +0000
commit0bf613f789fff80c32f9351ef3265c1e90f9bec0 (patch)
tree265833e36463cc74fa4525de1aacc47082f586db /proxy_wizard
parent854064bbfbc6e04a615c973fd90dd3948699388f (diff)
downloaddrakwizard-0bf613f789fff80c32f9351ef3265c1e90f9bec0.tar
drakwizard-0bf613f789fff80c32f9351ef3265c1e90f9bec0.tar.gz
drakwizard-0bf613f789fff80c32f9351ef3265c1e90f9bec0.tar.bz2
drakwizard-0bf613f789fff80c32f9351ef3265c1e90f9bec0.tar.xz
drakwizard-0bf613f789fff80c32f9351ef3265c1e90f9bec0.zip
enable squid on boot (#39254)
Diffstat (limited to 'proxy_wizard')
-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");