From a5762a3a64237233908d3741bc6fb1a888bac307 Mon Sep 17 00:00:00 2001 From: Nacho Date: Mon, 6 Jul 2015 13:28:07 +0100 Subject: Update havp.inc --- config/havp/havp.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/havp') diff --git a/config/havp/havp.inc b/config/havp/havp.inc index 036f576e..e7966a38 100644 --- a/config/havp/havp.inc +++ b/config/havp/havp.inc @@ -77,10 +77,11 @@ define('HVDEF_MAXSCANSIZE', '5000000'); # [bytes] ! do not enter 0 o define('HVDEF_MAXARCSCANSIZE', '5000000'); # [bytes] ! do not enter 0 or big size ! define('HVDEF_PID_FILE', '/var/run/havp.pid'); +$pf_version=substr(trim(file_get_contents("/etc/version")),0,3); if ($pf_version == "2.1" || $pf_version == "2.2") define("HVDEF_WORK_DIR", "/usr/pbi/havp-" . php_uname("m") . "/local/etc"); else - define("HVDEF_WORK_DIR", "/usr/local/etc/havp/"); + define("HVDEF_WORK_DIR", "/usr/local/etc/havp"); $pfSversion = str_replace("\s", "", file_get_contents("/etc/version")); -- cgit v1.2.3