peertube/entrypoint.sh.tmpl

17 lines
498 B
Cheetah
Raw Normal View History

2021-05-06 11:32:01 +00:00
#!/bin/sh
set -e
# Note(decentral1se): get file_env function back soon
# https://git.autonomic.zone/coop-cloud/peertube/issues/2
export PEERTUBE_DB_PASSWORD=$(cat "$PEERTUBE_DB_PASSWORD_FILE")
2021-05-06 11:00:04 +00:00
2021-05-06 11:32:01 +00:00
{{ if (env "PEERTUBE_SMTP_ENABLED") }}
export PEERTUBE_SMTP_PASSWORD=$(cat "$PEERTUBE_SMTP_PASSWORD_FILE")
2021-05-06 11:32:01 +00:00
{{ end }}
2021-05-06 10:59:25 +00:00
2021-05-06 11:32:01 +00:00
# upstream entrypoint
# https://github.com/Chocobozzz/PeerTube/blob/66f77f63437c6774acbd72584a9839a7636ea167/support/docker/production/entrypoint.sh
2021-05-06 11:24:20 +00:00
/usr/local/bin/entrypoint.sh "$@"