bridgehead/ccp/modules/dnpm-setup.sh

11 lines
545 B
Bash
Raw Normal View History

2023-05-10 12:54:05 +02:00
#!/bin/bash
if [ -n "${ENABLE_DNPM}" ]; then
log INFO "DNPM setup detected (Beam.Connect) -- will start Beam.Connect for DNPM."
2023-05-17 11:26:55 +02:00
OVERRIDE+=" -f ./$PROJECT/modules/dnpm-compose.yml"
2023-05-10 12:54:05 +02:00
# Set variables required for Beam-Connect
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)"
fi