Skip to content

Commit

Permalink
Node Join Script: add support for Rocky and AlmaLinux (#44331)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis authored Jul 17, 2024
1 parent 25894b7 commit 682a666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/web/scripts/node-join/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,10 @@ install_from_repo() {
fi
apt-get update
apt-get install -y ${PACKAGE_LIST}
elif [ "$ID" = "amzn" ] || [ "$ID" = "rhel" ] || [ "$ID" = "centos" ]; then
elif [ "$ID" = "amzn" ] || [ "$ID" = "rhel" ] || [ "$ID" = "centos" ] || [ "$ID" = "rocky" ] || [ "$ID" = "almalinux" ]; then
if [ "$ID" = "rocky" ] || [ "$ID" = "almalinux" ]; then
ID="rhel" # Rocky and AlmaLinux are bug-for-bug compatible with rhel (including the VERSION_ID format).
fi
if [ "$ID" = "rhel" ]; then
VERSION_ID="${VERSION_ID//.*/}" # convert version numbers like '7.2' to only include the major version
fi
Expand Down

0 comments on commit 682a666

Please sign in to comment.