2021-05-06 11:32:01 +00:00
|
|
|
#!/bin/sh
|
2021-03-19 16:03:13 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2021-05-06 11:46:41 +00:00
|
|
|
# Note(decentral1se): get file_env function back soon
|
|
|
|
# https://git.autonomic.zone/coop-cloud/peertube/issues/2
|
2021-03-19 16:03:13 +00:00
|
|
|
|
2021-05-06 11:46:41 +00:00
|
|
|
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") }}
|
2021-05-06 11:46:41 +00:00
|
|
|
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 "$@"
|