From 8f9a9e7c95f2817aa4e4d2c81e76606ba00240bf Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 27 Jan 2021 11:29:57 +0100 Subject: [PATCH] Updated detection of centos to accept all EL8 --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index 461aa2c..f33b7c8 100644 --- a/installer.sh +++ b/installer.sh @@ -57,7 +57,7 @@ elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then PKGI="${PKGM} install -y --no-install-recommends" PKGLIST="apt" shortdist=deb10 -elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then +elif [ "$(grep -oP '(?<=^PLATFORM_ID=).+' /etc/os-release | tr -d '"')" = "platform:el8" ]; then PKGM="dnf" PKGUC="$PKGM check-update --refresh" PKGUP="$PKGM update -y"