From 88e8ba74b81ef28b716dd572165957dd747847ff Mon Sep 17 00:00:00 2001 From: Loic Pottier Date: Thu, 10 Oct 2024 10:43:29 -0700 Subject: [PATCH] Adding support for RHEL-based distributions Signed-off-by: Loic Pottier Signed-off-by: Johannes Schindelin --- lib/index.js | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index e328771..8985511 100644 --- a/lib/index.js +++ b/lib/index.js @@ -17482,7 +17482,7 @@ async function run() { } else if (distro === "arch") { // partial upgrades are not supported so also upgrade everything await execShellCommand(optionalSudoPrefix + 'pacman -Syu --noconfirm xz openssh'); - } else if (distro === "fedora") { + } else if (distro === "fedora" || distro === "centos" || distro === "rhel" || distro === "almalinux") { await execShellCommand(optionalSudoPrefix + 'dnf install -y xz openssh'); } else { await execShellCommand(optionalSudoPrefix + 'apt-get update'); diff --git a/src/index.js b/src/index.js index 7c74b0a..7685462 100644 --- a/src/index.js +++ b/src/index.js @@ -96,7 +96,7 @@ export async function run() { } else if (distro === "arch") { // partial upgrades are not supported so also upgrade everything await execShellCommand(optionalSudoPrefix + 'pacman -Syu --noconfirm xz openssh'); - } else if (distro === "fedora") { + } else if (distro === "fedora" || distro === "centos" || distro === "rhel" || distro === "almalinux") { await execShellCommand(optionalSudoPrefix + 'dnf install -y xz openssh'); } else { await execShellCommand(optionalSudoPrefix + 'apt-get update');