Skip to content

Commit

Permalink
quiet logging down
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jun 22, 2017
1 parent 6e4a28b commit c000976
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions run/nobody/getvpnport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

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

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

VPN_INCOMING_PORT=$(<"${vpn_port}")
Expand Down

0 comments on commit c000976

Please sign in to comment.