diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-18 09:16:11 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-18 09:16:11 -0200 |
commit | 890801af42cff66dbac8706f621256b8d454a234 (patch) | |
tree | bf92b6e0e8592a14a0ff518ba1832e36358bab27 | |
parent | 2d6c4184d3a3a440854bb189728518eb1dd9ff17 (diff) | |
download | pfsense-packages-890801af42cff66dbac8706f621256b8d454a234.tar.gz pfsense-packages-890801af42cff66dbac8706f621256b8d454a234.tar.bz2 pfsense-packages-890801af42cff66dbac8706f621256b8d454a234.zip |
Revert 6819d263 partially since it can be useful for development tests
-rwxr-xr-x | config/squid3/34/squid.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 6a5de479..a2917515 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -42,8 +42,13 @@ if(!function_exists("filter_configure")) require_once("filter.inc"); $shortcut_section = "squid"; -define('SQUID_BASE', '/usr/pbi/squid-' . php_uname("m")); -define('SQUID_LOCALBASE', SQUID_BASE . "/local"); +if (is_dir('/usr/pbi/squid-' . php_uname("m"))) { + define('SQUID_BASE', '/usr/pbi/squid-' . php_uname("m")); + define('SQUID_LOCALBASE', SQUID_BASE . "/local"); +} else { + define('SQUID_BASE', '/usr/local'); + define('SQUID_LOCALBASE', '/usr/local'); +} define('SQUID_CONFBASE', SQUID_LOCALBASE .'/etc/squid'); define('SQUID_CONFFILE', SQUID_CONFBASE . '/squid.conf'); |