]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
install-deps.sh: install devtoolset-7 for centos/rhel
authorKefu Chai <kchai@redhat.com>
Fri, 10 Nov 2017 01:32:13 +0000 (09:32 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 5 Dec 2017 02:29:48 +0000 (10:29 +0800)
ready them for gcc7 and libstdc++-7 for better performance.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index 35b054f42b1c6960c82a87eb7a1dd26a68963aa4..d28ddb382a875f956c7b1ec0b8490a58c9331b54 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# -*- mode:sh; tab-width:8; indent-tabs-mode:t -*-
 #
 # Ceph distributed storage system
 #
@@ -132,8 +133,10 @@ 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
-                fi
-                if test $(lsb_release -si) = VirtuozzoLinux -a $MAJOR_VERSION = 7 ; then
+                    $SUDO yum install centos-release-scl
+                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
                     $SUDO yum-config-manager --enable cr
                 fi
                 ;;