Skip to content

Commit e5c7151

Browse files
authored
Merge pull request #205 from lpottier/master
Adding support for RHEL-based distributions
2 parents e1dfbcc + 88e8ba7 commit e5c7151

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17482,7 +17482,7 @@ async function run() {
1748217482
} else if (distro === "arch") {
1748317483
// partial upgrades are not supported so also upgrade everything
1748417484
await execShellCommand(optionalSudoPrefix + 'pacman -Syu --noconfirm xz openssh');
17485-
} else if (distro === "fedora") {
17485+
} else if (distro === "fedora" || distro === "centos" || distro === "rhel" || distro === "almalinux") {
1748617486
await execShellCommand(optionalSudoPrefix + 'dnf install -y xz openssh');
1748717487
} else {
1748817488
await execShellCommand(optionalSudoPrefix + 'apt-get update');

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export async function run() {
9696
} else if (distro === "arch") {
9797
// partial upgrades are not supported so also upgrade everything
9898
await execShellCommand(optionalSudoPrefix + 'pacman -Syu --noconfirm xz openssh');
99-
} else if (distro === "fedora") {
99+
} else if (distro === "fedora" || distro === "centos" || distro === "rhel" || distro === "almalinux") {
100100
await execShellCommand(optionalSudoPrefix + 'dnf install -y xz openssh');
101101
} else {
102102
await execShellCommand(optionalSudoPrefix + 'apt-get update');

0 commit comments

Comments
 (0)