diff --git a/server/lib/classes/cron.d/100-monitor_rkhunter.inc.php b/server/lib/classes/cron.d/100-monitor_rkhunter.inc.php index d5beee70bcf1dac36ac38f1f2bf7108bd9c4e5a2..43071b83872b26048266ba9250dff926c6997d95 100644 --- a/server/lib/classes/cron.d/100-monitor_rkhunter.inc.php +++ b/server/lib/classes/cron.d/100-monitor_rkhunter.inc.php @@ -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)