Robert Kaussow
2669d633ea
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
325 B
Bash
Executable File
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
|