bridgehead/ccp/modules/teiler-setup.sh

11 lines
498 B
Bash
Raw Normal View History

2023-02-10 13:11:50 +01:00
#!/bin/bash
2023-02-10 12:41:26 +01:00
function teilerSetup() {
if [ -n "$ENABLE_TEILER" ];then
log INFO "Teiler setup detected -- will start Teiler service."
OVERRIDE+=" -f ./$PROJECT/modules/teiler-compose.yml"
fi
# TODO: Generate password in another way so that not all passwords are the same?
TEILER_DB_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)"
}