aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid_ng.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-31 18:29:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-31 18:29:59 +0000
commit50bf7829a0a4cb1e097e2543d11cec759fe18c8c (patch)
tree3060aae6e686cf8b72ad76d55cd13df53cab70f7 /packages/squid_ng.inc
parent368149264a399c2da397402aa3d42ee5d4f152cb (diff)
downloadpfsense-packages-50bf7829a0a4cb1e097e2543d11cec759fe18c8c.tar.gz
pfsense-packages-50bf7829a0a4cb1e097e2543d11cec759fe18c8c.tar.bz2
pfsense-packages-50bf7829a0a4cb1e097e2543d11cec759fe18c8c.zip
Add squid logs to package logs area
Ticket #813
Diffstat (limited to 'packages/squid_ng.inc')
-rw-r--r--packages/squid_ng.inc10
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/squid_ng.inc b/packages/squid_ng.inc
index 5360797d..1623f9dc 100644
--- a/packages/squid_ng.inc
+++ b/packages/squid_ng.inc
@@ -212,12 +212,8 @@ function global_write_squid_config()
$config_array[] = 'cache_replacement_policy ' . $cache_replacement . "\n\n";
unset($cache_replacement);
- if (!file_exists("/var/squid/logs")) {
- mwexec("mkdir -p /var/squid/logs");
- mwexec("chown squid:squid /var/squid/logs");
- }
- $config_array[] = 'cache_access_log /var/squid/logs/access.log' . "\n";
- $config_array[] = 'cache_log /var/squid/logs/cache.log' . "\n";
+ $config_array[] = 'cache_access_log /var/log/access.log' . "\n";
+ $config_array[] = 'cache_log /var/log/cache.log' . "\n";
$config_array[] = 'cache_store_log none' . "\n";
unset($log_enabled);
@@ -228,7 +224,7 @@ function global_write_squid_config()
}
unset($log_query_terms);
- $config_array[] = 'useragent_log /var/squid/logs/useragent.log' . "\n\n";
+ $config_array[] = 'useragent_log /var/log/useragent.log' . "\n\n";
unset($log_user_agents);
$config_array[] = 'log_mime_hdrs off' . "\n";