summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-12-05 16:22:17 +0100
committerKefu Chai <kchai@redhat.com>2017-12-15 12:11:51 +0100
commitc2d1e02675fbe9610d710cd0c270563c8ffac1b7 (patch)
tree170e7ff260a5db0a99206741cd9b20063063073f
parentinstall-deps.sh: use gcc-7 on trusty (diff)
downloadceph-c2d1e02675fbe9610d710cd0c270563c8ffac1b7.tar.xz
ceph-c2d1e02675fbe9610d710cd0c270563c8ffac1b7.zip
install-deps.sh: install centos-release-scl-rh on aarch64
Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 84660c977cc7511290a3c5497468052b3eaccf43)
-rwxr-xr-xinstall-deps.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/install-deps.sh b/install-deps.sh
index 871a9f81a0e..c6a935a3df2 100755
--- a/install-deps.sh
+++ b/install-deps.sh
@@ -167,7 +167,12 @@ else
$SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*
if test $(lsb_release -si) = CentOS -a $MAJOR_VERSION = 7 ; then
$SUDO yum-config-manager --enable cr
- $SUDO yum install centos-release-scl
+ case $(uname -m) in
+ x86_64)
+ $SUDO yum install centos-release-scl;;
+ aarch64)
+ $SUDO yum install centos-release-scl-rh;;
+ esac
elif test $(lsb_release -si) = RedHatEnterpriseServer -a $MAJOR_VERSION = 7 ; then
$SUDO yum-config-manager --enable rhel-server-rhscl-7-rpms
elif test $(lsb_release -si) = VirtuozzoLinux -a $MAJOR_VERSION = 7 ; then