Add support for Rocky Linux 8

Since Rocky is attempting to replace CentOS as the "RHEL downstream" distro, I added it in the same place as CentOS in the checkOS function.
This commit is contained in:
derek-j-pitman 2021-07-05 20:10:51 -04:00 committed by GitHub
parent 2ab48f2265
commit 741e4e8277
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ function checkOS() {
if [[ $ID == "fedora" || $ID_LIKE == "fedora" ]]; then
OS="fedora"
fi
if [[ $ID == "centos" ]]; then
if [[ $ID == "centos" || $ID == "rocky" ]]; then
OS="centos"
if [[ ! $VERSION_ID =~ (7|8) ]]; then
echo "⚠️ Your version of CentOS is not supported."