diskimage-builder/elements/epel/pre-install.d/05-rpm-epel-release
Giulio Fidente ee001cf4bd Ensure epel7 is installed only on rhel7/centos7
Change-Id: I5812812f7d2cb5ba2e310e33d6e01cda8823c1c4
2014-10-02 12:14:25 +02:00

10 lines
329 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
if [[ "rhel7 centos7" =~ "$DISTRO_NAME" ]]; then
yum install -y http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
elif [[ "rhel" =~ "$DISTRO_NAME" ]]; then
yum install -y http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
fi