Commit 010d5183 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch 'osupdate-redhat' into 'develop'

Do OS-Update - Redhat family

See merge request ispconfig/ispconfig3!1356
parents b28bfb86 8a5fbd6f
......@@ -180,9 +180,8 @@ 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");
}
else {
exec("which dnf &> /dev/null && dnf -y update || yum -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("which dnf &> /dev/null && dnf -y update || yum -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