Skip to content

Commit 8b949e7

Browse files
committed
Do OS-Update for Redhat family - add CentOS7 yum
1 parent c1535d3 commit 8b949e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/software_update_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function os_update($action_name, $data) {
291291

292292
//** Redhat, CentOS, Fedora
293293
if(file_exists('/etc/redhat-release')) {
294-
exec("dnf -y update");
294+
exec("which dnf &> /dev/null && dnf -y update || yum -y update");
295295
}
296296

297297
//** Gentoo Linux

0 commit comments

Comments
 (0)