From 074c0b5ab6241f9a993c28e76902d17bef73efa0 Mon Sep 17 00:00:00 2001 From: yy <56745951+lingdie@users.noreply.github.com> Date: Wed, 29 May 2024 14:57:12 +0800 Subject: [PATCH] fix init.sh --- deploy/cloud/scripts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/cloud/scripts/init.sh b/deploy/cloud/scripts/init.sh index e4c6cb4f34f..cfb5c8155ed 100644 --- a/deploy/cloud/scripts/init.sh +++ b/deploy/cloud/scripts/init.sh @@ -135,7 +135,7 @@ function gen_cockroachdbUri() { } function gen_saltKey() { - password_salt=$(kubectl get configmap desktop-frontend-config -n sealos -o jsonpath='{.data.config\.yaml}' | grep "salt:" | awk '{print $2}' 2>/dev/null || true) + password_salt=$(kubectl get configmap desktop-frontend-config -n sealos -o jsonpath='{.data.config\.yaml}' | grep "salt:" | awk '{print $2}' 2>/dev/null | tr -d '"' || true) if [[ -z "$password_salt" ]]; then saltKey=$(tr -dc 'a-z0-9'