From 44bab04ea1908db239d82a99d64e2fbda56ebab4 Mon Sep 17 00:00:00 2001 From: gunix Date: Sat, 17 Oct 2020 04:09:58 +0300 Subject: [PATCH] do not stop OpenVPN script if the PIA_PF is missing; also inform the user he needs PIA_TOKEN to run OpenVPN --- connect_to_openvpn_with_token.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect_to_openvpn_with_token.sh b/connect_to_openvpn_with_token.sh index fa5d23a..9e15b18 100755 --- a/connect_to_openvpn_with_token.sh +++ b/connect_to_openvpn_with_token.sh @@ -77,10 +77,10 @@ fi # Check if the mandatory environment variables are set. if [[ ! $OVPN_SERVER_IP || ! $OVPN_HOSTNAME || - ! $PIA_PF || ! $PIA_TOKEN || ! $CONNECTION_SETTINGS ]]; then - echo 'This script requires 3 env vars:' + echo 'This script requires 4 env vars:' + echo 'PIA_TOKEN - the token used for authentication' echo 'OVPN_SERVER_IP - IP that you want to connect to' echo 'OVPN_HOSTNAME - name of the server, required for ssl' echo 'CONNECTION_SETTINGS - the protocol and encryption specification'