Commit 03a40c77 authored by Till Brehm's avatar Till Brehm

#5008 Remove rkhunter update function

parent bdb95fd0
...@@ -72,7 +72,13 @@ class cronjob_monitor_rkhunter extends cronjob { ...@@ -72,7 +72,13 @@ class cronjob_monitor_rkhunter extends cronjob {
/* /*
* Fetch the output * Fetch the output
*/ */
$data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress');
// Do not try to update rkhunter on Debian and Ubuntu, rkhunter is keept up to date with apt.
if(file_exists('/etc/debian_version')) {
$data['output'] = shell_exec('rkhunter --checkall --nocolors --skip-keypress');
} else {
$data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress');
}
/* /*
* At this moment, there is no state (maybe later) * At this moment, there is no state (maybe later)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment