vaultwarden/overlay/usr/local/bin/entrypoint
Robert Kaussow 37b6df3996
All checks were successful
continuous-integration/drone/push Build is passing
add missing wait-for call
2020-02-01 19:09:53 +01:00

14 lines
424 B
Bash
Executable File

#!/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
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}
fi
printf "Start Bitwarden Server ...\n"
exec /app/bitwarden_rs