From e9eb65600623ac1c442cad74743a6cdd5d0d6d68 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Tue, 12 Feb 2013 20:23:58 +0000 Subject: [PATCH] Error out when we cannot add EPEL repository support. --- bootstrap-salt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 61dc8ad..ea00ceb 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -930,6 +930,9 @@ install_centos_stable_deps() { rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/5/${EPEL_ARCH}/epel-release-5-4.noarch.rpm elif [ $DISTRO_MAJOR_VERSION -eq 6 ]; then rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/${EPEL_ARCH}/epel-release-6-8.noarch.rpm + else + echoerror "Failed add EPEL repository support." + exit 1 fi yum -y update }