Skip to content

Commit 010d518

Browse files
author
Marius Burkard
committed
Merge branch 'osupdate-redhat' into 'develop'
Do OS-Update - Redhat family See merge request ispconfig/ispconfig3!1356
2 parents b28bfb8 + 8a5fbd6 commit 010d518

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

server/mods-available/remoteaction_core_module.inc.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ private function _doOsUpdate($action) {
180180
if(file_exists('/etc/gentoo-release')) {
181181
exec("glsa-check -f --nocolor affected");
182182
} elseif(file_exists('/etc/redhat-release')) {
183-
exec("dnf -y update");
184-
}
185-
else {
183+
exec("which dnf &> /dev/null && dnf -y update || yum -y update");
184+
} else {
186185
exec("apt-get update");
187186
exec("apt-get -y upgrade");
188187
}

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("which dnf &> /dev/null && dnf -y update || yum -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)