Robert Kaussow
37b6df3996
All checks were successful
continuous-integration/drone/push Build is passing
14 lines
424 B
Bash
Executable File
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
|