Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install script: Add AlmaLinux support #626

Merged
merged 3 commits into from
Dec 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions contrib/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ then
pkg=yum
distribution=el
version=9
elif grep -q '^ID="\(rhel\|centos\)"$' /etc/os-release;
elif grep -q '^ID="\(rhel\|centos\|almalinux\)"$' /etc/os-release;
then
# RHEL and CentOS
# RHEL, CentOS and AlmaLinux
pkg=yum
distribution=el
version=$(grep VERSION_ID /etc/os-release | cut -d= -f2 | tr -d '"' | cut -d. -f1)
if [ "$version" != 7 ] && [ "$version" != 8 ] && [ "$version" != 9 ];
then
if confirm "Unsupported RHEL or CentOS version; try RHEL9 package?";
if confirm "Unsupported RHEL, CentOS or AlmaLinux version; try RHEL9 package?";
then
version=9
else
fail "unrecognized RHEL or CentOS version: ${version}"
fail "unrecognized RHEL, CentOS or AlmaLinux version: ${version}"
fi
fi
elif grep -q '^ID=fedora$' /etc/os-release;
Expand Down
Loading