vaultwarden/overlay/usr/local/bin/entrypoint
Robert Kaussow 591857e2ba
All checks were successful
continuous-integration/drone/push Build is passing
add simple wait-for script
2020-02-01 18:34:59 +01:00

12 lines
306 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
exec /app/bitwarden_rs
else
exec ${BITWARDENRS_WAIT_FOR_HOST}:${BITWARDENRS_WAIT_FOR_PORT} -- /app/bitwarden_rs
fi