Skip to content

Commit

Permalink
Merge pull request #42 from uProxy/trevj-issue-invite-url
Browse files Browse the repository at this point in the history
run_cloud should output a URL rather than plain invite code
  • Loading branch information
trevj committed Jan 21, 2016
2 parents add28e9 + 7eb2d7e commit ab6f22b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions testing/run-scripts/run_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ if ! docker ps -a | grep uproxy-sshd >/dev/null; then
echo -n "Waiting for Zork to come up..."
while ! ((echo ping ; sleep 0.5) | nc -w 1 $HOST_IP 9000 | grep ping) > /dev/null; do echo -n .; done
echo "ready!"
if [ -z "$INVITE_CODE" ]
then
INVITE_CODE=`docker cp uproxy-sshd:/initial-giver-invite-code -|tar xO`
echo "invite code: $INVITE_CODE"
fi
fi
# Output the invitation URL.
INVITE_CODE=`docker cp uproxy-sshd:/initial-giver-invite-code -|tar xO`
echo "invite code: https://www.uproxy.org/invite/$INVITE_CODE"

0 comments on commit ab6f22b

Please sign in to comment.