From 06930126c0e7e9fff7633ddf3290772ac3368236 Mon Sep 17 00:00:00 2001 From: yy Date: Fri, 30 Jun 2023 17:42:28 +0800 Subject: [PATCH] fix init.sh --- deploy/cloud/etc/sealos/desktop-config.yaml | 2 +- deploy/cloud/scripts/init.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/cloud/etc/sealos/desktop-config.yaml b/deploy/cloud/etc/sealos/desktop-config.yaml index d4c46e9d697..f92344de132 100644 --- a/deploy/cloud/etc/sealos/desktop-config.yaml +++ b/deploy/cloud/etc/sealos/desktop-config.yaml @@ -11,4 +11,4 @@ spec: data: mongodb_uri: jwt_secret: - password_salt: \ No newline at end of file + password_salt: diff --git a/deploy/cloud/scripts/init.sh b/deploy/cloud/scripts/init.sh index 7d4d59ea6b1..ebdd02475de 100644 --- a/deploy/cloud/scripts/init.sh +++ b/deploy/cloud/scripts/init.sh @@ -83,7 +83,7 @@ function sealos_run_frontend { function mutate_desktop_config() { # mutate etc/sealos/desktop-config.yaml by using mongodb uri and two random base64 string - sed -i -e "s;;$(echo -n "$mongodb_uri" | base64);" etc/sealos/desktop-config.yaml + sed -i -e "s;;$(echo -n "$mongodb_uri" | base64 -w 0);" etc/sealos/desktop-config.yaml sed -i -e "s;;$(tr -cd 'a-z0-9' ;$(tr -cd 'a-z0-9'