fix url-parser syntax
This commit is contained in:
parent
a6b12fc9c8
commit
8dcacf02e2
@ -9,8 +9,8 @@ set -eo pipefail
|
|||||||
/usr/local/bin/gomplate -o /app/.env -f /etc/templates/env.tmpl
|
/usr/local/bin/gomplate -o /app/.env -f /etc/templates/env.tmpl
|
||||||
|
|
||||||
if [ -n "$VAULTWARDEN_DATABASE_URL" ]; then
|
if [ -n "$VAULTWARDEN_DATABASE_URL" ]; then
|
||||||
WAITFOR_HOST=$(/usr/local/bin/url-parser --url host "$VAULTWARDEN_DATABASE_URL")
|
WAITFOR_HOST=$(/usr/local/bin/url-parser --url "$VAULTWARDEN_DATABASE_URL" host)
|
||||||
WAITFOR_PORT=$(/usr/local/bin/url-parser --url port "$VAULTWARDEN_DATABASE_URL")
|
WAITFOR_PORT=$(/usr/local/bin/url-parser --url "$VAULTWARDEN_DATABASE_URL" port)
|
||||||
|
|
||||||
log_info "Wait for database server on '${WAITFOR_HOST}:${WAITFOR_PORT:-5432}'"
|
log_info "Wait for database server on '${WAITFOR_HOST}:${WAITFOR_PORT:-5432}'"
|
||||||
/usr/local/bin/wait-for "${WAITFOR_HOST}":"${WAITFOR_PORT:-5432}"
|
/usr/local/bin/wait-for "${WAITFOR_HOST}":"${WAITFOR_PORT:-5432}"
|
||||||
|
Loading…
Reference in New Issue
Block a user