Generate passwords only if modules are enabled

This commit is contained in:
juarez
2023-07-19 13:45:14 +02:00
parent 5684307539
commit c03e85cfca
3 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
if [ "$ENABLE_LOGIN" == true ];then
if [ "$ENABLE_LOGIN" == true ]; then
log INFO "Login setup detected -- will start Login services."
OVERRIDE+=" -f ./$PROJECT/modules/login-compose.yml"
KEYCLOAK_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for Keycloak. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
fi
KEYCLOAK_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for Keycloak. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"