From 541efa18267b5ea1ac1422586b1b6712a22e3f6c Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:22:19 +0000 Subject: [PATCH] Update rke2.sh --- Kubernetes/RKE2/rke2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kubernetes/RKE2/rke2.sh b/Kubernetes/RKE2/rke2.sh index db1ea80..90998cf 100644 --- a/Kubernetes/RKE2/rke2.sh +++ b/Kubernetes/RKE2/rke2.sh @@ -84,7 +84,7 @@ else fi # Create SSH Config file to ignore checking (don't use in production!) -echo "StrictHostKeyChecking no" > ~/.ssh/config +sed -i '1s/^/StrictHostKeyChecking no\n/' ~/.ssh/config #add ssh keys for all nodes for node in "${all[@]}"; do @@ -262,4 +262,4 @@ while [[ $(kubectl get svc -n cattle-system 'jsonpath={..status.conditions[?(@.t done kubectl get svc -n cattle-system -echo -e " \033[32;5mAccess Rancher from the IP above - Password is admin!\033[0m" \ No newline at end of file +echo -e " \033[32;5mAccess Rancher from the IP above - Password is admin!\033[0m"