Add support for CentOS 9 + update supported distributions

This commit is contained in:
Stanislas Lange
2023-01-22 00:57:26 +01:00
parent 2f76bb5e40
commit d2556ff235
3 changed files with 22 additions and 17 deletions

View File

@@ -57,7 +57,7 @@ function checkOS() {
fi
if [[ $ID == "centos" || $ID == "rocky" || $ID == "almalinux" ]]; then
OS="centos"
if [[ ! $VERSION_ID =~ (7|8) ]]; then
if [[ $VERSION_ID -lt 7 ]]; then
echo "⚠️ Your version of CentOS is not supported."
echo ""
echo "The script only support CentOS 7 and CentOS 8."