]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: always use yum-config-manager for consistency
authorKefu Chai <kchai@redhat.com>
Fri, 10 Nov 2017 12:03:25 +0000 (20:03 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Dec 2017 11:11:51 +0000 (19:11 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit eccc961c728153c928baa4478e9c8d5a1139a834)

install-deps.sh

index d28ddb382a875f956c7b1ec0b8490a58c9331b54..0c3e9b09c8b55d34f088cb8d31167527dcdb62d7 100755 (executable)
@@ -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