Skip to content

Commit c1535d3

Browse files
committed
Do OS-Update for Redhat family
1 parent 91a7ecb commit c1535d3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

server/mods-available/remoteaction_core_module.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ private function _doOsUpdate($action) {
181181
exec("glsa-check -f --nocolor affected");
182182
} elseif(file_exists('/etc/redhat-release')) {
183183
exec("dnf -y update");
184-
}
185-
else {
184+
} elseif(file_exists('/etc/redhat-release')) {
185+
exec("dnf -y update");
186+
} else {
186187
exec("apt-get update");
187188
exec("apt-get -y upgrade");
188189
}

server/plugins-available/software_update_plugin.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ public function os_update($action_name, $data) {
289289
$app->log('Execeuted Debian / Ubuntu update', LOGLEVEL_DEBUG);
290290
}
291291

292+
//** Redhat, CentOS, Fedora
293+
if(file_exists('/etc/redhat-release')) {
294+
exec("dnf -y update");
295+
}
296+
292297
//** Gentoo Linux
293298
if(file_exists('/etc/gentoo-release')) {
294299
exec("glsa-check -f --nocolor affected");

0 commit comments

Comments
 (0)