Skip to content

Commit

Permalink
fix init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Jun 30, 2023
1 parent 54da45f commit 0693012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/cloud/etc/sealos/desktop-config.yaml
Expand Up @@ -11,4 +11,4 @@ spec:
data:
mongodb_uri: <your-mongodb-uri-base64>
jwt_secret: <your-jwt-secret-base64>
password_salt: <your-password-salt-base64>
password_salt: <your-password-salt-base64>
2 changes: 1 addition & 1 deletion deploy/cloud/scripts/init.sh
Expand Up @@ -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;<your-mongodb-uri-base64>;$(echo -n "$mongodb_uri" | base64);" etc/sealos/desktop-config.yaml
sed -i -e "s;<your-mongodb-uri-base64>;$(echo -n "$mongodb_uri" | base64 -w 0);" etc/sealos/desktop-config.yaml
sed -i -e "s;<your-jwt-secret-base64>;$(tr -cd 'a-z0-9' </dev/urandom | head -c64 | base64 -w 0);" etc/sealos/desktop-config.yaml
sed -i -e "s;<your-password-salt-base64>;$(tr -cd 'a-z0-9' </dev/urandom | head -c64 | base64 -w 0);" etc/sealos/desktop-config.yaml
}
Expand Down

0 comments on commit 0693012

Please sign in to comment.