Commit c1535d34 authored by Jozef Sroka's avatar Jozef Sroka
Browse files

Do OS-Update for Redhat family

parent 91a7ecbb
Pipeline #6830 passed with stage
in 8 minutes and 19 seconds
......@@ -181,8 +181,9 @@ class remoteaction_core_module {
exec("glsa-check -f --nocolor affected");
} elseif(file_exists('/etc/redhat-release')) {
exec("dnf -y update");
}
else {
} elseif(file_exists('/etc/redhat-release')) {
exec("dnf -y update");
} else {
exec("apt-get update");
exec("apt-get -y upgrade");
}
......
......@@ -289,6 +289,11 @@ class software_update_plugin {
$app->log('Execeuted Debian / Ubuntu update', LOGLEVEL_DEBUG);
}
//** Redhat, CentOS, Fedora
if(file_exists('/etc/redhat-release')) {
exec("dnf -y update");
}
//** Gentoo Linux
if(file_exists('/etc/gentoo-release')) {
exec("glsa-check -f --nocolor affected");
......
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