fix url-parser syntax
This commit is contained in:
parent
7ec7bc08ce
commit
2b5edd3237
@ -14,9 +14,9 @@ if [ -z "$VAULTWARDEN_LDAP_VAULTWARDEN_URL" ] || [ -z "$VAULTWARDEN_LDAP_HOST" ]
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$VAULTWARDEN_LDAP_VAULTWARDEN_URL" ]; then
|
if [ -n "$VAULTWARDEN_LDAP_VAULTWARDEN_URL" ]; then
|
||||||
WAITFOR_BW_SCHEME=$(/usr/local/bin/url-parser --url scheme "$VAULTWARDEN_LDAP_VAULTWARDEN_URL")
|
WAITFOR_BW_SCHEME=$(/usr/local/bin/url-parser --url "$VAULTWARDEN_LDAP_VAULTWARDEN_URL" scheme)
|
||||||
WAITFOR_BW_HOST=$(/usr/local/bin/url-parser --url host "$VAULTWARDEN_LDAP_VAULTWARDEN_URL")
|
WAITFOR_BW_HOST=$(/usr/local/bin/url-parser --url "$VAULTWARDEN_LDAP_VAULTWARDEN_URL" host)
|
||||||
WAITFOR_BW_PORT=$(/usr/local/bin/url-parser --url port "$VAULTWARDEN_LDAP_VAULTWARDEN_URL")
|
WAITFOR_BW_PORT=$(/usr/local/bin/url-parser --url "$VAULTWARDEN_LDAP_VAULTWARDEN_URL" port)
|
||||||
|
|
||||||
if [ -z "$WAITFOR_BW_PORT" ]; then
|
if [ -z "$WAITFOR_BW_PORT" ]; then
|
||||||
[ "$WAITFOR_BW_SCHEME" = "https" ] && WAITFOR_BW_PORT=433 || WAITFOR_BW_PORT=80
|
[ "$WAITFOR_BW_SCHEME" = "https" ] && WAITFOR_BW_PORT=433 || WAITFOR_BW_PORT=80
|
||||||
|
Reference in New Issue
Block a user