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]>
  • Loading branch information
lpottier committed Oct 10, 2024
1 parent c85bfb7 commit fc7107b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -17655,4 +17655,4 @@ run()

module.exports = __webpack_exports__;
/******/ })()
;
;
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 fc7107b

Please sign in to comment.