summaryrefslogtreecommitdiffstats
path: root/proxy_wizard
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-09-18 12:21:53 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-09-18 12:21:53 +0000
commit3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d (patch)
treecfc25d77dcb5a6c44aa280f5aa980f2a76766295 /proxy_wizard
parent1b08e50f3e1857dc008dfbf838eb44e4e94e0440 (diff)
downloaddrakwizard-3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d.tar
drakwizard-3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d.tar.gz
drakwizard-3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d.tar.bz2
drakwizard-3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d.tar.xz
drakwizard-3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d.zip
missed \n between commented string and new string
Diffstat (limited to 'proxy_wizard')
-rw-r--r--proxy_wizard/scripts/Squidconf.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/proxy_wizard/scripts/Squidconf.pm b/proxy_wizard/scripts/Squidconf.pm
index d9d1c103..b586b711 100644
--- a/proxy_wizard/scripts/Squidconf.pm
+++ b/proxy_wizard/scripts/Squidconf.pm
@@ -51,19 +51,19 @@ mynetw = $ENV{wiz_squid_mynetw} cache_mem = $ENV{wiz_squid_mem} http_port = $ENV
level = $ENV{wiz_squid_level}");
if ($ENV{wiz_squid_level} == 1) {
substInFile {
- s|^\s*\#?\s*(http_access\s*)deny(\s*all.*)|\#$&$1allow$2|;
+ s|^\s*\#?\s*(http_access\s*)deny(\s*all.*)|\#$&\n$1allow$2|;
} $file;
}
elsif ($ENV{wiz_squid_level} == 2) {
substInFile {
- s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&$1deny$2|;
- s|^\s*\#?\s*(http_access\s*allow\s*)localhost|\#$&$1mynetwork|;
+ s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&\n$1deny$2|;
+ s|^\s*\#?\s*(http_access\s*allow\s*)localhost|\#$&\n$1mynetwork|;
} $file;
}
elsif ($ENV{wiz_squid_level} == 3) {
substInFile {
- s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&$1deny$2|;
- s|^\s*\#?\s*(http_access\s*allow\s*)mynetwork|\#$&$1localhost|;
+ s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&\n$1deny$2|;
+ s|^\s*\#?\s*(http_access\s*allow\s*)mynetwork|\#$&\n$1localhost|;
} $file;
}
else { # should not happen