aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNacho <ncolunga@gmail.com>2015-07-06 13:28:07 +0100
committerNacho <ncolunga@gmail.com>2015-07-06 13:28:07 +0100
commita5762a3a64237233908d3741bc6fb1a888bac307 (patch)
tree4382521cca163342c624bbbfd0d483883894d212
parent9405ea5e0f51096ebe0ba1e7d8efee9e74346e06 (diff)
downloadpfsense-packages-a5762a3a64237233908d3741bc6fb1a888bac307.tar.gz
pfsense-packages-a5762a3a64237233908d3741bc6fb1a888bac307.tar.bz2
pfsense-packages-a5762a3a64237233908d3741bc6fb1a888bac307.zip
Update havp.inc
-rw-r--r--config/havp/havp.inc3
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"));