Skip to content

Commit

Permalink
fix init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie authored May 29, 2024
1 parent ff66404 commit 074c0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/cloud/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' </dev/urandom | head -c64)
else
Expand Down

0 comments on commit 074c0b5

Please sign in to comment.