Skip to content

Commit

Permalink
Merge pull request #205 from lpottier/master
Browse files Browse the repository at this point in the history
Adding support for RHEL-based distributions
  • Loading branch information
dscho authored Oct 10, 2024
2 parents e1dfbcc + 88e8ba7 commit e5c7151
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 e5c7151

Please sign in to comment.