diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/squid/squid.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 8e426176..30f3884c 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -39,11 +39,12 @@ require_once('service-utils.inc'); if(!function_exists("filter_configure")) require_once("filter.inc"); -if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") { - define('SQUID_LOCALBASE','/usr/local'); -} else { +$pf_version=substr(trim(file_get_contents("/etc/version")),0,3); +if ($pf_version > 2.0) define('SQUID_LOCALBASE', '/usr/pbi/squid-' . php_uname("m")); -} +else + define('SQUID_LOCALBASE','/usr/local'); + define('SQUID_CONFBASE',SQUID_LOCALBASE . '/etc/squid'); define('SQUID_BASE', '/var/squid/'); |