From: Kefu Chai Date: Fri, 10 Nov 2017 12:03:25 +0000 (+0800) Subject: install-deps.sh: always use yum-config-manager for consistency X-Git-Tag: v13.0.1~8^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dba0028ba17cbf21aa8c39d13e4c1aabc4bd6120;p=ceph.git install-deps.sh: always use yum-config-manager for consistency Signed-off-by: Kefu Chai (cherry picked from commit eccc961c728153c928baa4478e9c8d5a1139a834) --- diff --git a/install-deps.sh b/install-deps.sh index d28ddb382a87..0c3e9b09c8b5 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -124,8 +124,7 @@ else $SUDO yum install -y yum-utils MAJOR_VERSION=$(lsb_release -rs | cut -f1 -d.) if test $(lsb_release -si) = RedHatEnterpriseServer ; then - $SUDO yum install subscription-manager - $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms + $SUDO yum-config-manager --enable rhel-$MAJOR_VERSION-server-optional-rpms fi $SUDO yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/$MAJOR_VERSION/x86_64/ $SUDO yum install --nogpgcheck -y epel-release