We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b949e7 commit 8a5fbd6Copy full SHA for 8a5fbd6
server/mods-available/remoteaction_core_module.inc.php
@@ -180,9 +180,7 @@ private function _doOsUpdate($action) {
180
if(file_exists('/etc/gentoo-release')) {
181
exec("glsa-check -f --nocolor affected");
182
} elseif(file_exists('/etc/redhat-release')) {
183
- exec("dnf -y update");
184
- } elseif(file_exists('/etc/redhat-release')) {
185
+ exec("which dnf &> /dev/null && dnf -y update || yum -y update");
186
} else {
187
exec("apt-get update");
188
exec("apt-get -y upgrade");
0 commit comments