Fix fhir2sql db pw generation (#219)

fix postgresql password generation so that the password does not contain problematic characters that mess with the connection string
This commit is contained in:
davidmscholz 2024-08-29 09:15:22 +02:00 committed by GitHub
parent 3fe781255b
commit ed8dacaa59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3,5 +3,5 @@
if [ "$ENABLE_FHIR2SQL" == true ]; then
log INFO "Dashboard setup detected -- will start Dashboard backend and FHIR2SQL service."
OVERRIDE+=" -f ./$PROJECT/modules/fhir2sql-compose.yml"
DASHBOARD_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for the Dashboard database. It is not required to be secret.\" | sha1sum | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
DASHBOARD_DB_PASSWORD="$(generate_simple_password 'fhir2sql')"
fi