Skip to content

Commit

Permalink
minor tidy up of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jun 22, 2017
1 parent c000976 commit 2650700
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run/nobody/getvpnport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

vpn_port="/home/nobody/vpn_incoming_port.txt"

while [ ! -f "${vpn_port}" ]
do
if [ ! -f "${vpn_port}" ]; then
if [[ "${DEBUG}" == "true" ]]; then
echo "[debug] Waiting for file '${vpn_port}' to be generated (contains PIA API generated incoming port number)..."
fi
fi

while [ ! -f "${vpn_port}" ]
do
sleep 1s
done

Expand Down

0 comments on commit 2650700

Please sign in to comment.