Skip to content

Commit

Permalink
Adding support for RHEL-based distributions
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Pottier <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
lpottier authored and dscho committed Oct 10, 2024
1 parent c85bfb7 commit 88e8ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 88e8ba7

Please sign in to comment.