]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: install centos-release-scl-rh on aarch64 19341/head
authorKefu Chai <kchai@redhat.com>
Tue, 5 Dec 2017 15:22:17 +0000 (23:22 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 5 Dec 2017 15:48:15 +0000 (23:48 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index 871a9f81a0e914f7ae18afa618e68fee80c727cf..c6a935a3df29674920b8aa6c7a170335d3f0e897 100755 (executable)
@@ -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