From a7baba45cd2403ed658caeedef444a8ceb24f2ed Mon Sep 17 00:00:00 2001 From: trevor tao Date: Tue, 21 May 2019 15:15:27 +0800 Subject: [PATCH] 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 --- src/foundation/scripts/{config.sh => config} | 0 src/foundation/scripts/k8s_master.sh | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/foundation/scripts/{config.sh => config} (100%) 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" -- 2.16.6