summaryrefslogtreecommitdiff
path: root/netcon/docker-test/nodejs
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2015-12-03 18:50:20 -0800
committerJoseph Henry <josephjah@gmail.com>2015-12-03 18:50:20 -0800
commit2196d982c374231e09f41d23cc32932391036ee8 (patch)
treed38df4d0ee567bfe12b6e949af1c2923260370f7 /netcon/docker-test/nodejs
parent5c5943a00c38f2540c6d30616e1b48222d1fa6c2 (diff)
downloadinfinitytier-2196d982c374231e09f41d23cc32932391036ee8.tar.gz
infinitytier-2196d982c374231e09f41d23cc32932391036ee8.zip
(fixed) nwid detection in test script
Diffstat (limited to 'netcon/docker-test/nodejs')
-rw-r--r--netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/netcon_entrypoint.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/netcon_entrypoint.sh b/netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/netcon_entrypoint.sh
index a6aadb9f..a6e1b6c1 100644
--- a/netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/netcon_entrypoint.sh
+++ b/netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/netcon_entrypoint.sh
@@ -23,11 +23,13 @@ virtip4=""
while [ -z "$virtip4" ]; do
sleep 0.2
virtip4=`/zerotier-cli listnetworks | grep -F $nwid | cut -d ' ' -f 9 | sed 's/,/\n/g' | grep -F '.' | cut -d / -f 1`
+ dev=`/zerotier-cli listnetworks | grep -F "" | cut -d ' ' -f 8 | cut -d "_" -f 2 | sed "s/^<dev>//" | tr '\n' '\0'`
done
echo '*** Up and running at' $virtip4 ' on network: ' $nwid
echo '*** Writing address to ' "$address_file"
echo $virtip4 > "$address_file"
+export ZT_NC_NWID=$dev
# --- Test section ---
echo '*** Starting application...'