Handle optional lookup

This commit is contained in:
decentral1se 2021-05-06 12:59:25 +02:00
parent 432eb2c077
commit fc9879c6ff
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -22,6 +22,9 @@ file_env() {
}
file_env "PEERTUBE_DB_PASSWORD"
file_env "PEERTUBE_SMTP_PASSWORD"
if [ -z "$PEERTUBE_SMTP_PASSWORD_FILE" ]; then
file_env "PEERTUBE_SMTP_PASSWORD"
fi
exec /usr/local/bin/entrypoint.sh "$@"