From 4d19db7c9f7552c151564e70be8dc1c56a20619b Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 6 Aug 2021 11:47:04 -0400 Subject: [PATCH] scripts/installer: work on Oracle Linux (#2604) Before we didn't detect it properly. Since Oracle Linux is diet centos, we can just make the centos logic detect Oracle linux and everything should be fine. Signed-off-by: Christine Dodrill --- scripts/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index dbeb4aa92..883ab5928 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -46,11 +46,11 @@ main() { VERSION="$VERSION_CODENAME" PACKAGETYPE="apt" ;; - centos) + centos|ol) OS="$ID" VERSION="$VERSION_ID" PACKAGETYPE="dnf" - if [ "$VERSION" = "7" ]; then + if [ "$VERSION" =~ ^7 ]; then PACKAGETYPE="yum" fi ;;