vaultwarden/overlay/usr/local/bin/entrypoint

14 lines
424 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
2020-02-01 18:09:53 +00:00
if [ ! -z "$BITWARDENRS_WAIT_FOR_HOST" ] && [ ! -z "$BITWARDENRS_WAIT_FOR_PORT" ]
2020-02-01 17:34:59 +00:00
then
2020-02-01 18:09:53 +00:00
printf "Wait for ${BITWARDENRS_WAIT_FOR_HOST}:${BITWARDENRS_WAIT_FOR_PORT} ...\n"
/usr/local/bin/wait-for ${BITWARDENRS_WAIT_FOR_HOST}:${BITWARDENRS_WAIT_FOR_PORT}
2020-02-01 17:34:59 +00:00
fi
2020-02-01 18:09:53 +00:00
printf "Start Bitwarden Server ...\n"
exec /app/bitwarden_rs