Robert Kaussow
554bd28f5f
All checks were successful
continuous-integration/drone/push Build is passing
18 lines
456 B
Bash
Executable File
18 lines
456 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
set -eo
|
|
|
|
/usr/local/bin/gomplate -V -o /app/.env -f /etc/templates/env.tmpl
|
|
|
|
if [ "$BITWARDENRS_WAITFOR_ENABLED" = true ]
|
|
then
|
|
WAITFOR_HOST=$(url-parse host --url "$BITWARDENRS_DATABASE_URL")
|
|
WAITFOR_PORT=$(url-parse port --url "$BITWARDENRS_DATABASE_URL")
|
|
|
|
printf "Wait for database server ...\n"
|
|
/usr/local/bin/wait-for "${WAITFOR_HOST}":"${WAITFOR_PORT:-5432}"
|
|
fi
|
|
|
|
printf "Start Bitwarden Server ...\n"
|
|
exec /app/bitwarden_rs
|