vaultwarden/overlay/usr/local/bin/entrypoint

12 lines
306 B
Plaintext
Raw Normal View History

2020-02-01 17:34:59 +00:00
#!/usr/bin/env sh
set -eo pipefail
/usr/local/bin/gomplate -V -o /app/.env -f /etc/templates/env.tmpl
if [ -z "$BITWARDENRS_WAIT_FOR_HOST" ] && [ -z "$BITWARDENRS_WAIT_FOR_PORT" ]
then
exec /app/bitwarden_rs
else
exec ${BITWARDENRS_WAIT_FOR_HOST}:${BITWARDENRS_WAIT_FOR_PORT} -- /app/bitwarden_rs
fi