bridgehead/minimal/modules/dnpm-node-setup.sh

16 lines
557 B
Bash
Raw Normal View History

2023-12-15 10:24:06 +01:00
#!/bin/bash
if [ -n "${ENABLE_DNPM_NODE}" ]; then
2024-11-13 18:15:35 +01:00
log INFO "DNPM setup detected -- will start DNPM:DIP node."
2023-12-15 10:24:06 +01:00
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-node-compose.yml"
# Set variables required for BwHC Node. ZPM_SITE is assumed to be set in /etc/bridgehead/<project>.conf
if [ -z "${ZPM_SITE+x}" ]; then
log ERROR "Mandatory variable ZPM_SITE not defined!"
exit 1
fi
2024-11-13 18:15:35 +01:00
DNPM_SYNTH_NUM=${DNPM_SYNTH_NUM:--1}
DNPM_MYSQL_ROOT_PASSWORD="$(generate_simple_password 'dnpm mysql')"
DNPM_AUTHUP_SECRET="$(generate_simple_password 'dnpm authup')"
2023-12-15 10:24:06 +01:00
fi