vaultwarden/overlay/usr/local/bin/entrypoint
Robert Kaussow 2669d633ea
All checks were successful
continuous-integration/drone/push Build is passing
cleanup
2020-02-01 23:14:37 +01:00

15 lines
325 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 database server ...\n"
/usr/local/bin/wait-for
fi
printf "Start Bitwarden Server ...\n"
exec /app/bitwarden_rs