Skip to content

Commit

Permalink
install.sh: add support for Rocky Linux 8.9 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ustorbeck authored Jul 6, 2024
1 parent 8ef7b26 commit 9ef98c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ os_release_detect() {
;;
centos|rocky|rhel)
# Supported centos/rocky/rhel releases
set -- 8 8.8 9 9.1 9.2
set -- 8 8.8 8.9 9 9.1 9.2

for item in "$@";
do
Expand Down Expand Up @@ -776,6 +776,7 @@ grpc_collector_deploy() {
"Linux centos 8" | \
"Linux centos 9" | \
"Linux rocky 8.8" | \
"Linux rocky 8.9" | \
"Linux rhel 8" | \
"Linux rhel 9" | \
"Linux rhel 9.1" | \
Expand All @@ -792,7 +793,7 @@ grpc_collector_deploy() {
yum install -y epel-release >/dev/null 2>&1 || die "error - epel-release install failure" "${err_epel_failure}"

# Switch to a recent gcc version (old centos/rocky/rhel release)
if [ "${_os_info}" = "Linux centos 8" ] || [ "${_os_info}" = "Linux rhel 8" ] || [ "${_os_info}" = "Linux rocky 8.8" ]; then
if [ "${_os_info}" = "Linux centos 8" ] || [ "${_os_info}" = "Linux rhel 8" ] || [ "${_os_info}" = "Linux rocky 8.8" ] || [ "${_os_info}" = "Linux rocky 8.9" ]; then
yum -y install gcc-toolset-11 >/dev/null 2>&1
source /opt/rh/gcc-toolset-11/enable
fi
Expand Down

0 comments on commit 9ef98c6

Please sign in to comment.