do not stop OpenVPN script if the PIA_PF is missing; also inform the user he needs PIA_TOKEN to run OpenVPN

This commit is contained in:
gunix 2020-10-17 04:09:58 +03:00
parent 24c7733c14
commit 44bab04ea1
1 changed files with 2 additions and 2 deletions

View File

@ -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'