Skip to content
Snippets Groups Projects
Commit 8a5fbd6f authored by Jozef Sroka's avatar Jozef Sroka
Browse files

Do OS-Update for Redhat family - add CentOS7 yum

parent 8b949e73
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment