Merge "Fix some errors in IEC installation scripts"
authorJianlin Lv <Jianlin.Lv@arm.com>
Wed, 22 May 2019 01:24:50 +0000 (01:24 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Wed, 22 May 2019 01:24:50 +0000 (01:24 +0000)
src/foundation/scripts/config [moved from src/foundation/scripts/config.sh with 100% similarity]
src/foundation/scripts/k8s_master.sh

index 1782769..82fc79b 100755 (executable)
@@ -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"