Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
fix detection when AUTH_SECRET is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cpainchaud committed May 23, 2023
1 parent ee61a9e commit ab55b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab55b1c

Please sign in to comment.