From ab55b1c6c1e33ed0086414de72ab6754a3a93f8a Mon Sep 17 00:00:00 2001 From: Christophe Painchaud Date: Tue, 23 May 2023 13:49:42 +0200 Subject: [PATCH] fix detection when AUTH_SECRET is empty --- build/entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/entry.sh b/build/entry.sh index 85e7c0f..ceda8f7 100755 --- a/build/entry.sh +++ b/build/entry.sh @@ -38,7 +38,7 @@ if is_enabled "$KILL_SWITCH"; then fi # Docker secret that contains the credentials for accessing the VPN. -if [[ $AUTH_SECRET ]]; then +if [[ ! -z "${AUTH_SECRET-}" ]]; then openvpn_args+=("--auth-user-pass" "/run/secrets/$AUTH_SECRET") fi