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

#5008 Remove rkhunter update function

parent bdb95fd0
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,13 @@ class cronjob_monitor_rkhunter extends cronjob {
/*
* 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)
......
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