diff options
author | Nicolas Vigier <nvigier@mandriva.com> | 2008-03-28 15:38:36 +0000 |
---|---|---|
committer | Nicolas Vigier <nvigier@mandriva.com> | 2008-03-28 15:38:36 +0000 |
commit | b90c525b28bcbc65201b049161b3aab1566e6886 (patch) | |
tree | 42cd02951b67aeffaf790aef4c4e88053539f9be /proxy_wizard | |
parent | c0fc5c2ceaeeb7d758467067cb312aa1d9ca322f (diff) | |
download | drakwizard-b90c525b28bcbc65201b049161b3aab1566e6886.tar drakwizard-b90c525b28bcbc65201b049161b3aab1566e6886.tar.gz drakwizard-b90c525b28bcbc65201b049161b3aab1566e6886.tar.bz2 drakwizard-b90c525b28bcbc65201b049161b3aab1566e6886.tar.xz drakwizard-b90c525b28bcbc65201b049161b3aab1566e6886.zip |
add check_starts_on_boot function
Diffstat (limited to 'proxy_wizard')
-rwxr-xr-x | proxy_wizard/Squid.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm index d47c86e2..1188ddcc 100755 --- a/proxy_wizard/Squid.pm +++ b/proxy_wizard/Squid.pm @@ -233,12 +233,7 @@ sub port { sub do_it { $::testing and return; my $in = 'interactive'->vnew('su', 'Squid Config'); - if (!services::starts_on_boot('squid')) { - my $start_service = $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_service) { - services::start_service_on_boot('squid'); - } - } + check_starts_on_boot($in, 'squid'); 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"); |