Merge "Fixing epel-release bug on MapR cluster installation"

This commit is contained in:
Jenkins 2017-02-07 22:37:09 +00:00 committed by Gerrit Code Review
commit f43baff25a

View File

@ -28,17 +28,7 @@ protect=1
EOF EOF
rpm --import http://package.mapr.com/releases/pub/maprgpg.key rpm --import http://package.mapr.com/releases/pub/maprgpg.key
yum install -y wget yum install -y wget
release=`cat /etc/*-release` yum install -y epel-release
if [[ $release =~ 6\.[0-9] ]]; then
rpm -q epel-release-6-8 || \
rpm -i http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
elif [[ $release =~ 7\.[0-9] ]]; then
rpm -q epel-release-7-8 || \
rpm -i http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
else
echo "Unsupported distribution version"
exit 1
fi
else else
echo "Unknown distribution" echo "Unknown distribution"
exit 1 exit 1