17 lines
498 B
Bash
17 lines
498 B
Bash
#!/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")
|
|
|
|
{{ if (env "PEERTUBE_SMTP_ENABLED") }}
|
|
export PEERTUBE_SMTP_PASSWORD=$(cat "$PEERTUBE_SMTP_PASSWORD_FILE")
|
|
{{ end }}
|
|
|
|
# upstream entrypoint
|
|
# https://github.com/Chocobozzz/PeerTube/blob/66f77f63437c6774acbd72584a9839a7636ea167/support/docker/production/entrypoint.sh
|
|
/usr/local/bin/entrypoint.sh "$@"
|