mirror of
https://github.com/samply/bridgehead.git
synced 2026-06-23 10:30:17 +02:00
21 lines
719 B
Bash
21 lines
719 B
Bash
#!/bin/bash -e
|
|
|
|
if [ -n "${ENABLE_DNPM}" ]; then
|
|
log INFO "DNPM setup detected (Beam.Connect) -- will start Beam.Connect for DNPM."
|
|
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose.yml"
|
|
|
|
# Set variables required for Beam-Connect
|
|
DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
|
# If the DNPM_NO_PROXY variable is set, prefix it with a comma (as it gets added to a comma separated list)
|
|
if [ -n "${DNPM_NO_PROXY}" ]; then
|
|
DNPM_ADDITIONAL_NO_PROXY=",${DNPM_NO_PROXY}"
|
|
else
|
|
DNPM_ADDITIONAL_NO_PROXY=""
|
|
fi
|
|
if [ -n "${ENABLE_DNPM_NODE}" ]; then
|
|
DNPM_BEAM_CONNECT_HOST="${DNPM_BEAM_CONNECT_HOST:-$HOST}"
|
|
else
|
|
DNPM_BEAM_CONNECT_HOST="dnpm-beam-connect:8062"
|
|
fi
|
|
fi
|