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');