Support DNPM Discovery URL
This commit is contained in:
parent
3a5444dec0
commit
6c2d970d01
|
@ -6,9 +6,10 @@ function dnpmSetup() {
|
||||||
OVERRIDE+=" -f ./dnpm/dnpm-compose-beamconnect.yml"
|
OVERRIDE+=" -f ./dnpm/dnpm-compose-beamconnect.yml"
|
||||||
DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
DNPM_APPLICATION_SECRET="$(echo \"This is a salt string to generate one consistent password. It is not required to be secret.\" | openssl rsautl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||||
DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
||||||
|
source /etc/bridgehead/dnpm/shared-but-secret-vars || fail_and_report 1 "Unable to load /etc/bridgehead/dnpm/shared-but-secret-vars"
|
||||||
|
export DNPM_DISCOVERY_URL
|
||||||
if [ -e /etc/bridgehead/dnpm/bwhcConnectorConfig.xml ]; then
|
if [ -e /etc/bridgehead/dnpm/bwhcConnectorConfig.xml ]; then
|
||||||
log INFO "DNPM setup detected (with Frontend/Backend) -- will start BWHC Frontend/Backend."
|
log INFO "DNPM setup detected (with Frontend/Backend) -- will start BWHC Frontend/Backend."
|
||||||
source /etc/bridgehead/dnpm/shared-but-secret-vars || fail_and_report 1 "Unable to load /etc/bridgehead/dnpm/shared-but-secret-vars"
|
|
||||||
OVERRIDE+=" -f ./dnpm/dnpm-compose-bwhc.yml"
|
OVERRIDE+=" -f ./dnpm/dnpm-compose-bwhc.yml"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue