diff options
-rw-r--r-- | config/havp/havp.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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")); |