From ae0dc73ef815a033c7da8ed5da13d60fa71e3894 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sun, 21 Oct 2012 16:05:29 +0100 Subject: [PATCH] Don't ignore CPU information for CentOS. --- bootstrap-salt-minion.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt-minion.sh b/bootstrap-salt-minion.sh index 03ab126..b081b40 100755 --- a/bootstrap-salt-minion.sh +++ b/bootstrap-salt-minion.sh @@ -451,7 +451,12 @@ install_fedora_stable() { # install_centos_63_stable_deps() { - rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-7.noarch.rpm + if [ $CPU_ARCH_L = "i686" ]; then + local ARCH="i386" + else + local ARCH=$CPU_ARCH_L + fi + rpm -Uvh --force http://mirrors.kernel.org/fedora-epel/6/${ARCH}/epel-release-6-7.noarch.rpm yum -y update }