From: trevor tao Date: Tue, 21 May 2019 07:15:27 +0000 (+0800) Subject: Fix some errors in IEC installation scripts X-Git-Tag: 1.0.0~4^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=a7baba45cd2403ed658caeedef444a8ceb24f2ed;p=iec.git Fix some errors in IEC installation scripts 1. Fix the error of source the wrong config file in startup.sh 2. Fix the error of adding the KUBECONFIG to the ~/.profile, which would not be sourced when starting a BASH, it should be set in ~/.bashrc. Change-Id: I98051d824788e9d950dc6b0b0634e08ea6bfe14d Signed-off-by: trevor tao --- diff --git a/src/foundation/scripts/config.sh b/src/foundation/scripts/config similarity index 100% rename from src/foundation/scripts/config.sh rename to src/foundation/scripts/config diff --git a/src/foundation/scripts/k8s_master.sh b/src/foundation/scripts/k8s_master.sh index 1782769..82fc79b 100755 --- a/src/foundation/scripts/k8s_master.sh +++ b/src/foundation/scripts/k8s_master.sh @@ -19,9 +19,9 @@ if ! kubectl get nodes; then if [ "$(id -u)" = 0 ]; then echo "export KUBECONFIG=/etc/kubernetes/admin.conf" | \ - tee -a "${HOME}/.profile" + tee -a "${HOME}/.bashrc" # shellcheck disable=SC1090 - source "${HOME}/.profile" + source "${HOME}/.bashrc" else mkdir -p "${HOME}/.kube" sudo cp -i /etc/kubernetes/admin.conf "${HOME}/.kube/config"