We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb95fd commit 03a40c7Copy full SHA for 03a40c7
server/lib/classes/cron.d/100-monitor_rkhunter.inc.php
@@ -72,7 +72,13 @@ public function onRunJob() {
72
/*
73
* Fetch the output
74
*/
75
- $data['output'] = shell_exec('rkhunter --update --checkall --nocolors --skip-keypress');
+
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
+ }
82
83
84
* At this moment, there is no state (maybe later)
0 commit comments