Generate consistent nNGM Connector password
This commit is contained in:
parent
5c65ae9638
commit
3a668a1cce
|
@ -5,7 +5,5 @@ function nngmSetup() {
|
||||||
log INFO "nNGM setup detected -- will start nNGM Connector."
|
log INFO "nNGM setup detected -- will start nNGM Connector."
|
||||||
OVERRIDE+="-f ./$PROJECT/nngm-compose.yml"
|
OVERRIDE+="-f ./$PROJECT/nngm-compose.yml"
|
||||||
fi
|
fi
|
||||||
|
CONNECTOR_POSTGRES_PASSWORD="$(echo \"This is a salt string to generate one consistent password. It is not required to be secret.\" | openssl rsautl -encrypt -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)"
|
||||||
}
|
}
|
||||||
|
|
||||||
#CONNECTOR_POSTGRES_PASSWORD="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"
|
|
||||||
CONNECTOR_POSTGRES_PASSWORD="$(echo -n /etc/bridgehead/pki/mannheim.priv.pem | sha256sum | head -c 20)"
|
|
||||||
|
|
Loading…
Reference in New Issue