#!/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