Skip to content
Snippets Groups Projects
Commit 277af431 authored by Till Brehm's avatar Till Brehm
Browse files

Better ClamAV outdated check.

parent 10acaf24
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ class cronjob_monitor_clamav_log extends cronjob { ...@@ -129,7 +129,7 @@ class cronjob_monitor_clamav_log extends cronjob {
$clamav_outdated_warning = false; $clamav_outdated_warning = false;
$clamav_bytecode_updated = false; $clamav_bytecode_updated = false;
foreach ($lastLog as $line) { foreach ($lastLog as $line) {
if (stristr($line,'outdated')) { if (stristr($line,"Can't download daily.cvd from")) {
$clamav_outdated_warning = true; $clamav_outdated_warning = true;
} }
if(stristr($line,'main.cld is up to date')) { if(stristr($line,'main.cld is up to date')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment