aboutsummaryrefslogtreecommitdiffstats
path: root/config/widget-antivirus
diff options
context:
space:
mode:
Diffstat (limited to 'config/widget-antivirus')
-rw-r--r--config/widget-antivirus/antivirus_status.widget.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/widget-antivirus/antivirus_status.widget.php b/config/widget-antivirus/antivirus_status.widget.php
index 999ca416..c08ffeb8 100644
--- a/config/widget-antivirus/antivirus_status.widget.php
+++ b/config/widget-antivirus/antivirus_status.widget.php
@@ -36,7 +36,12 @@ require_once("pfsense-utils.inc");
require_once("functions.inc");
define('PATH_CLAMDB', '/var/db/clamav');
-define('PATH_HAVPLOG', '/var/log/access.log');
+$pfSversion = str_replace("\s", "", file_get_contents("/etc/version"));
+if(preg_match("/^2.0/",$pfSversion))
+ define('PATH_HAVPLOG', '/var/log/havp/access.log');
+else
+ define('PATH_HAVPLOG', '/var/log/access.log');
+
define('PATH_AVSTATUS', '/var/tmp/havp.status');