mirror of
https://github.com/pia-foss/manual-connections.git
synced 2025-02-05 14:08:29 +00:00
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:
parent
24c7733c14
commit
44bab04ea1
|
@ -77,10 +77,10 @@ fi
|
||||||
# Check if the mandatory environment variables are set.
|
# Check if the mandatory environment variables are set.
|
||||||
if [[ ! $OVPN_SERVER_IP ||
|
if [[ ! $OVPN_SERVER_IP ||
|
||||||
! $OVPN_HOSTNAME ||
|
! $OVPN_HOSTNAME ||
|
||||||
! $PIA_PF ||
|
|
||||||
! $PIA_TOKEN ||
|
! $PIA_TOKEN ||
|
||||||
! $CONNECTION_SETTINGS ]]; then
|
! $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_SERVER_IP - IP that you want to connect to'
|
||||||
echo 'OVPN_HOSTNAME - name of the server, required for ssl'
|
echo 'OVPN_HOSTNAME - name of the server, required for ssl'
|
||||||
echo 'CONNECTION_SETTINGS - the protocol and encryption specification'
|
echo 'CONNECTION_SETTINGS - the protocol and encryption specification'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user