diff --git a/README.md b/README.md index fce07e2..9292472 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ Supported Linux distributions and versions: - CentOS 8 Stream - AlmaLinux 9 - AlmaLinux 8 +- Rocky Linux 9 - Rocky Linux 8 - Debian 11 - Debian 10 diff --git a/xo-install.sh b/xo-install.sh index 9ad1d51..93305b1 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -1267,8 +1267,8 @@ function CheckOS { exit 1 fi - if [[ "$OSNAME" == "Rocky" ]] && [[ "$OSVERSION" != "8" ]]; then - printfail "Only Rocky Linux 8 supported" + if [[ "$OSNAME" == "Rocky" ]] && [[ ! "$OSVERSION" =~ ^(8|9)$ ]]; then + printfail "Only Rocky Linux 8/9 supported" exit 1 fi