ZeroTierOne/tests/http/docker-main.sh

17 lines
362 B
Bash
Raw Normal View History

#!/bin/bash
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
2015-10-30 20:06:30 +00:00
/zerotier-one -d >>zerotier-one.out 2>&1
2015-10-28 21:16:58 +00:00
2015-11-03 22:39:44 +00:00
# Wait for ZeroTier to start and join the network
2015-10-28 21:16:58 +00:00
while [ ! -d "/proc/sys/net/ipv6/conf/zt0" ]; do
sleep 0.25
done
2015-11-03 22:39:44 +00:00
# Wait just a bit longer for stuff to settle
sleep 5
2015-10-28 21:16:58 +00:00
exec node --harmony /agent.js >>agent.out 2>&1
#exec node --harmony /agent.js