bridgehead/ccp/nngm-setup.sh

13 lines
470 B
Bash
Raw Normal View History

2022-10-26 11:50:21 +02:00
#!/bin/bash
function nngmSetup() {
if [ -n "$NNGM_CTS_APIKEY" ]; then
log INFO "nNGM setup detected -- will start nNGM Connector."
2022-11-08 10:54:51 +01:00
OVERRIDE+=" -f ./$PROJECT/nngm-compose.yml"
2022-12-23 07:58:37 +01:00
docker-compose -f ./$PROJECT/nngm-compose.yml pull
CONNECTOR_POSTGRES_PASSWORD="$(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)"
2022-10-26 11:50:21 +02:00
fi
}