Skip to content

Commit 03a40c7

Browse files
author
Till Brehm
committed
#5008 Remove rkhunter update function
1 parent bdb95fd commit 03a40c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

server/lib/classes/cron.d/100-monitor_rkhunter.inc.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ public function onRunJob() {
7272
/*
7373
* Fetch the output
7474
*/
75-
$data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress');
75+
76+
// Do not try to update rkhunter on Debian and Ubuntu, rkhunter is keept up to date with apt.
77+
if(file_exists('/etc/debian_version')) {
78+
$data['output'] = shell_exec('rkhunter --checkall --nocolors --skip-keypress');
79+
} else {
80+
$data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress');
81+
}
7682

7783
/*
7884
* At this moment, there is no state (maybe later)

0 commit comments

Comments
 (0)