2023-09-04 16:43:40 +02:00
|
|
|
#!/bin/bash -e
|
2023-05-10 12:54:05 +02:00
|
|
|
|
|
|
|
if [ -n "${ENABLE_DNPM}" ]; then
|
2023-08-07 13:00:37 +02:00
|
|
|
log INFO "DNPM setup detected (Beam.Connect) -- will start Beam.Connect for DNPM."
|
2024-09-13 08:17:12 +02:00
|
|
|
OVERRIDE+=" -f ./common/dnpm-compose.yml"
|
2023-05-10 12:54:05 +02:00
|
|
|
|
|
|
|
# Set variables required for Beam-Connect
|
|
|
|
DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
2024-02-21 16:04:00 +01:00
|
|
|
# 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
|
2023-05-10 12:54:05 +02:00
|
|
|
fi
|