Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -180,9 +180,8 @@ class remoteaction_core_module { ...@@ -180,9 +180,8 @@ class remoteaction_core_module {
if(file_exists('/etc/gentoo-release')) { if(file_exists('/etc/gentoo-release')) {
exec("glsa-check -f --nocolor affected"); exec("glsa-check -f --nocolor affected");
} elseif(file_exists('/etc/redhat-release')) { } elseif(file_exists('/etc/redhat-release')) {
exec("dnf -y update"); exec("which dnf &> /dev/null && dnf -y update || yum -y update");
} } else {
else {
exec("apt-get update"); exec("apt-get update");
exec("apt-get -y upgrade"); exec("apt-get -y upgrade");
} }
......
...@@ -289,6 +289,11 @@ class software_update_plugin { ...@@ -289,6 +289,11 @@ class software_update_plugin {
$app->log('Execeuted Debian / Ubuntu update', LOGLEVEL_DEBUG); $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 //** Gentoo Linux
if(file_exists('/etc/gentoo-release')) { if(file_exists('/etc/gentoo-release')) {
exec("glsa-check -f --nocolor affected"); exec("glsa-check -f --nocolor affected");
......
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