Skip to content

Commit

Permalink
put in check for vpn ip for port up script
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Aug 2, 2017
1 parent 9e1e9a7 commit 56395d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run/root/getvpnport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ pia_api_url="http://${pia_api_host}:${pia_api_port}"
# remove previous run output file
rm -f /home/nobody/vpn_incoming_port.txt

# wait for vpn tunnel to come up before proceeding
source /home/nobody/getvpnip.sh

# check we are provider pia (note this env var is passed through to up script via openvpn --sentenv option)
if [[ "${VPN_PROV}" == "pia" ]]; then

Expand Down

0 comments on commit 56395d6

Please sign in to comment.