From 0c0c7275a9400265bc5dab21174b455915edaa56 Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Tue, 20 Oct 2015 12:53:19 +0100 Subject: [PATCH] Use DIB_EPEL_MIRROR when finding the epel-release package download.fedoraproject.org uses dns round robin and occasionally hits a bad server. Using DIB_EPEL_MIRROR when finding the epel-release package will allow us to avoid it e.g. in ci. Change-Id: I756223b3e669532476663c05e79c238449b8a0db --- elements/epel/pre-install.d/05-rpm-epel-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/epel/pre-install.d/05-rpm-epel-release b/elements/epel/pre-install.d/05-rpm-epel-release index 33b66ac0..efdd0d7f 100755 --- a/elements/epel/pre-install.d/05-rpm-epel-release +++ b/elements/epel/pre-install.d/05-rpm-epel-release @@ -12,7 +12,7 @@ if [ 'amd64' = "$ARCH" ] ; then ARCH="x86_64" fi -BASE_URL=http://download.fedoraproject.org/pub/epel +BASE_URL=${DIB_EPEL_MIRROR:-http://download.fedoraproject.org/pub/epel} case "$DISTRO_NAME" in rhel7|centos7) RELEASE=7