Merge pull request #138 from jsargent8789/patch-1

Update xo-install.sh to support rocky linux 9
This commit is contained in:
Roni Väyrynen
2022-08-12 14:17:42 +03:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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