From ff2a04b1d08e4e764e2b68f6954df4c59d12573b Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Thu, 14 May 2020 09:13:13 +0000 Subject: [PATCH] Make script work on RHEL Signed-off-by: Tibor Vass --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 192ab1c..fac96d4 100644 --- a/install.sh +++ b/install.sh @@ -337,13 +337,13 @@ do_install() { esac ;; - centos) + centos|rhel) if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then dist_version="$(. /etc/os-release && echo "$VERSION_ID")" fi ;; - rhel|ol|sles) + ol|sles) ee_notice "$lsb_dist" exit 1 ;; @@ -422,7 +422,7 @@ do_install() { echo_docker_as_nonroot exit 0 ;; - centos|fedora) + centos|fedora|rhel) yum_repo="$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE" if ! curl -Ifs "$yum_repo" > /dev/null; then echo "Error: Unable to curl repository file $yum_repo, is it valid?"