diff --git a/run/root/getvpnport.sh b/run/root/getvpnport.sh index ff4fd34..e56a39c 100644 --- a/run/root/getvpnport.sh +++ b/run/root/getvpnport.sh @@ -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