You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by ev...@apache.org on 2019/02/19 04:47:38 UTC

[bigtop] branch master updated: BIGTOP-3169. Enable local repo is not working on yum systems (#472)

This is an automated email from the ASF dual-hosted git repository.

evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new cc5a3b5  BIGTOP-3169. Enable local repo is not working on yum systems (#472)
cc5a3b5 is described below

commit cc5a3b589a185248f6c997fa75a47ca30748d634
Author: Evans Ye <ev...@apache.org>
AuthorDate: Tue Feb 19 12:47:34 2019 +0800

    BIGTOP-3169. Enable local repo is not working on yum systems (#472)
---
 provisioner/utils/setup-env-centos.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/provisioner/utils/setup-env-centos.sh b/provisioner/utils/setup-env-centos.sh
index 48bb2f6..2e4916c 100755
--- a/provisioner/utils/setup-env-centos.sh
+++ b/provisioner/utils/setup-env-centos.sh
@@ -38,6 +38,8 @@ if [ $enable_local_repo == "true" ]; then
     yum -y install yum-utils
     sudo echo "gpgcheck=0" >> /etc/yum.conf
     sudo yum-config-manager --add-repo file:///bigtop-home/output
+    sudo echo "gpgcheck=0" >> /etc/yum.repos.d/bigtop-home_output.repo
+    sudo echo "priority=10" >> /etc/yum.repos.d/bigtop-home_output.repo
 else
     echo "local yum = $enable_local_repo ; NOT Enabling local yum.  Packages will be pulled from remote..."
 fi