Add generate_password function

This commit is contained in:
juarez
2023-11-23 15:54:44 +01:00
parent 00969a24f9
commit eff7e85ff3
3 changed files with 19 additions and 6 deletions

View File

@ -3,5 +3,5 @@
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)"
KEYCLOAK_DB_PASSWORD="$(generate_password \"local Keycloak\")"
fi