Return to sh mode of checking

This commit is contained in:
decentral1se 2021-05-06 15:16:51 +02:00
parent c9c7fb0019
commit c828be2c68
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 3 additions and 4 deletions

View File

@ -108,8 +108,7 @@ configs:
template_driver: golang
app_entrypoint:
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
file: entrypoint.sh
secrets:
db_password:

View File

@ -8,10 +8,10 @@ set -e
export PEERTUBE_DB_PASSWORD=$(cat "$PEERTUBE_DB_PASSWORD_FILE")
unset PEERTUBE_DB_PASSWORD_FILE
{{ if eq (env "PEERTUBE_SMTP_ENABLED") "1" }}
if [ -z "$PEERTUBE_SMTP_ENABLED" ]; then
export PEERTUBE_SMTP_PASSWORD=$(cat "$PEERTUBE_SMTP_PASSWORD_FILE")
unset PEERTUBE_SMTP_PASSWORD_FILE
{{ end }}
fi
# upstream entrypoint
# https://github.com/Chocobozzz/PeerTube/blob/66f77f63437c6774acbd72584a9839a7636ea167/support/docker/production/entrypoint.sh