From af00296ffe995ee7958f4adf7eb2c4d8aed0486e Mon Sep 17 00:00:00 2001 From: Dave Page Date: Tue, 31 Mar 2020 17:14:45 +0100 Subject: [PATCH] We only need to enable repos on CentOS/RHEL 8. --- pkg/redhat/setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/redhat/setup.sh b/pkg/redhat/setup.sh index 2859e7e29..d7c1ef8c5 100755 --- a/pkg/redhat/setup.sh +++ b/pkg/redhat/setup.sh @@ -9,7 +9,9 @@ OS_VERSION=$(cat /etc/os-release | grep "^VERSION_ID=" | awk -F "=" '{ print $2 # EPEL & other repos yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${OS_VERSION}.noarch.rpm -yum config-manager --enable PowerTools AppStream BaseOS *epel +if [ ${OS_VERSION} == 8 ]; then + yum config-manager --enable PowerTools AppStream BaseOS *epel +fi # Node repo echo "Setting up the NodeJS repo..."