Commit 8a5fbd6f authored by Jozef Sroka's avatar Jozef Sroka
Browse files

Do OS-Update for Redhat family - add CentOS7 yum

parent 8b949e73
Pipeline #6832 passed with stage
in 7 minutes and 25 seconds
......@@ -180,9 +180,7 @@ class remoteaction_core_module {
if(file_exists('/etc/gentoo-release')) {
exec("glsa-check -f --nocolor affected");
} elseif(file_exists('/etc/redhat-release')) {
exec("dnf -y update");
} elseif(file_exists('/etc/redhat-release')) {
exec("dnf -y update");
exec("which dnf &> /dev/null && dnf -y update || yum -y update");
} else {
exec("apt-get update");
exec("apt-get -y upgrade");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment