bridgehead/ccp/modules/dashboard-setup.sh

8 lines
470 B
Bash
Raw Normal View History

2024-07-01 14:54:04 +02:00
#!/bin/bash -e
2024-07-30 09:24:07 +02:00
if [ "$ENABLE_FHIR2SQL" == true ]; then
2024-07-01 14:54:04 +02:00
log INFO "Dashboard setup detected -- will start Dashboard backend and FHIR2SQL service."
OVERRIDE+=" -f ./$PROJECT/modules/dashboard-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)"
fi