summaryrefslogtreecommitdiffstats
path: root/install-deps.sh
diff options
context:
space:
mode:
authorLoic Dachary <ldachary@redhat.com>2015-12-08 08:02:56 +0100
committerLoic Dachary <ldachary@redhat.com>2015-12-08 08:25:24 +0100
commit247ee6084b58861da601d349bdba739b252d96de (patch)
treedfb741bdfa219a709c1e4550b0fae72dc3956c68 /install-deps.sh
parentMerge pull request #6842 from badone/wip-13997 (diff)
downloadceph-247ee6084b58861da601d349bdba739b252d96de.tar.xz
ceph-247ee6084b58861da601d349bdba739b252d96de.zip
build/ops: enable CR in CentOS 7
To get libunwind from the CR repositories until CentOS 7.2.1511 is released. http://tracker.ceph.com/issues/13997 Fixes: #13997 Signed-off-by: Loic Dachary <loic@dachary.org>
Diffstat (limited to 'install-deps.sh')
-rwxr-xr-xinstall-deps.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/install-deps.sh b/install-deps.sh
index 1bebf09b08b..8249ea34597 100755
--- a/install-deps.sh
+++ b/install-deps.sh
@@ -62,7 +62,7 @@ CentOS|Fedora|RedHatEnterpriseServer)
CentOS|RedHatEnterpriseServer)
$SUDO yum install -y yum-utils
MAJOR_VERSION=$(lsb_release -rs | cut -f1 -d.)
- if test $(lsb_release -si) == RedHatEnterpriseServer ; then
+ if test $(lsb_release -si) = RedHatEnterpriseServer ; then
$SUDO yum install subscription-manager
$SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms
fi
@@ -70,6 +70,9 @@ CentOS|Fedora|RedHatEnterpriseServer)
$SUDO yum install --nogpgcheck -y epel-release
$SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION
$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
;;
esac
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec