Handle optional lookup

This commit is contained in:
decentral1se 2021-05-06 12:59:25 +02:00
parent 432eb2c077
commit fc9879c6ff
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 4 additions and 1 deletions

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 "$@"