security/clamav: split log differently for freshclam; closes #559

This commit is contained in:
Franco Fichtner
2018-02-12 07:31:41 +01:00
parent 393b6682fa
commit 83464cf82b
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= clamav
PLUGIN_VERSION= 1.4
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Antivirus engine for detecting malicious threats
PLUGIN_DEPENDS= clamav
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4 -1
View File
@@ -7,7 +7,10 @@ if (isset($_GET['type']) && ($_GET['type'] === 'clamd' || $_GET['type'] === 'fre
$logfile = "/var/log/clamav/{$type}.log";
$logclog = false;
$logsplit = 2;
if ($type == 'clamd') {
$logsplit = 2;
}
$logpills = array();
$logpills[] = array(gettext('Clamd'), true, '/diag_logs_clamav.php?type=clamd');