aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-30 17:14:08 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-30 17:14:08 +0200
commit00749933c6c09280683271dfbe6d3f3140be1a4f (patch)
tree5671309f2b1e247ef4291163287a250eb1039cf4
parent109b1e565344581ebecfbefed8e482b1ebc48f37 (diff)
downloadpfsense-packages-00749933c6c09280683271dfbe6d3f3140be1a4f.tar.gz
pfsense-packages-00749933c6c09280683271dfbe6d3f3140be1a4f.tar.bz2
pfsense-packages-00749933c6c09280683271dfbe6d3f3140be1a4f.zip
Fix log_dir location for C-ICAP to that it honors custom log_dir
-rwxr-xr-xconfig/squid3/34/squid.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index ed3367d3..8188dfda 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -1533,7 +1533,12 @@ EOF;
$cicap_m[0] = "@Manager:Apassword\S+@";
$cicap_r[0] = "";
// XXX: Bug #4615
- $logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/logs');
+ if (is_array($config['installedpackages']['squid'])) {
+ $squidsettings = $config['installedpackages']['squid']['config'][0];
+ } else {
+ $squidsettings = array();
+ }
+ $logdir = ($squidsettings['log_dir'] ? $squidsettings['log_dir'] : '/var/squid/logs');
$cicap_m[1] = "@DebugLevel\s1@";
$cicap_r[1] = "DebugLevel 0";
$cicap_m[2] = "@AccessLog /var/log/c-icap/access.log@";