diff options
author | Nacho <ncolunga@gmail.com> | 2015-04-30 09:36:23 +0100 |
---|---|---|
committer | Nacho <ncolunga@gmail.com> | 2015-04-30 09:36:23 +0100 |
commit | d4d21883ec492185c4aad430059c54f3893cb079 (patch) | |
tree | fb95c284a8385cb885994bc41b5707b0ae45de16 /config | |
parent | 4a39025643c95046db57fa391572573cc8871c2a (diff) | |
download | pfsense-packages-d4d21883ec492185c4aad430059c54f3893cb079.tar.gz pfsense-packages-d4d21883ec492185c4aad430059c54f3893cb079.tar.bz2 pfsense-packages-d4d21883ec492185c4aad430059c54f3893cb079.zip |
Update havp.inc
This changes fix HAVP on pfsense 2.2.2 as related on https://forum.pfsense.org/index.php?topic=90706.0
Diffstat (limited to 'config')
-rw-r--r-- | config/havp/havp.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc index 1648bcb0..3e77903c 100644 --- a/config/havp/havp.inc +++ b/config/havp/havp.inc @@ -76,7 +76,7 @@ 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/local/etc/havp'); +define('HVDEF_WORK_DIR', '/usr/pbi/havp-amd64/local/etc'); $pfSversion = str_replace("\s", "", file_get_contents("/etc/version")); if(preg_match("/^2./",$pfSversion)) @@ -101,8 +101,8 @@ define('HVDEF_HAVP_MINSRV', '3'); define('HVDEF_HAVP_MAXSRV', '100'); # Clam -#define('HVDEF_CLAM_RUNDIR', '/var/run/clamav'); -define('HVDEF_CLAM_RUNDIR', '/var/run'); +define('HVDEF_CLAM_RUNDIR', '/var/run/clamav'); +#define('HVDEF_CLAM_RUNDIR', '/var/run'); define('HVDEF_CLAM_DBDIR', '/var/db/clamav'); if(preg_match("/^2./",$pfSversion)) define('HVDEF_AVLOG_DIR', '/var/log/clamav'); @@ -446,9 +446,9 @@ function havp_check_system() # =-= ClamAV =-= # catalog for Pid and Socket files -# if (!file_exists(HVDEF_CLAM_RUNDIR)) -# mwexec("mkdir -p " . HVDEF_CLAM_RUNDIR); -# havp_set_file_access(HVDEF_CLAM_RUNDIR, HVDEF_USER, '0774'); + if (!file_exists(HVDEF_CLAM_RUNDIR)) + mwexec("mkdir -p " . HVDEF_CLAM_RUNDIR); + havp_set_file_access(HVDEF_CLAM_RUNDIR, HVDEF_USER, '0774'); # AV update script file_put_contents(HVDEF_AVUPD_SCRIPT, havp_AVupdate_script()); |