We only need to enable repos on CentOS/RHEL 8.

This commit is contained in:
Dave Page 2020-03-31 17:14:45 +01:00
parent dd7d3c6e23
commit af00296ffe

View File

@ -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..."