aboutsummaryrefslogtreecommitdiffstats
path: root/config/havp
diff options
context:
space:
mode:
authorNacho <ncolunga@gmail.com>2015-07-06 13:20:41 +0100
committerNacho <ncolunga@gmail.com>2015-07-06 13:20:41 +0100
commit9405ea5e0f51096ebe0ba1e7d8efee9e74346e06 (patch)
treec00013a2b4cf83b8417002f7013af1a9122e9ff4 /config/havp
parentd4d21883ec492185c4aad430059c54f3893cb079 (diff)
downloadpfsense-packages-9405ea5e0f51096ebe0ba1e7d8efee9e74346e06.tar.gz
pfsense-packages-9405ea5e0f51096ebe0ba1e7d8efee9e74346e06.tar.bz2
pfsense-packages-9405ea5e0f51096ebe0ba1e7d8efee9e74346e06.zip
Update havp.inc
Diffstat (limited to 'config/havp')
-rw-r--r--config/havp/havp.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc
index 3e77903c..036f576e 100644
--- a/config/havp/havp.inc
+++ b/config/havp/havp.inc
@@ -76,7 +76,12 @@ define('HVDEF_PROXYPORT', '8080');
define('HVDEF_MAXSCANSIZE', '5000000'); # [bytes] ! do not enter 0 or big size !
define('HVDEF_MAXARCSCANSIZE', '5000000'); # [bytes] ! do not enter 0 or big size !
define('HVDEF_PID_FILE', '/var/run/havp.pid');
-define('HVDEF_WORK_DIR', '/usr/pbi/havp-amd64/local/etc');
+
+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/");
+
$pfSversion = str_replace("\s", "", file_get_contents("/etc/version"));
if(preg_match("/^2./",$pfSversion))