From 38a592e29e92a3ecc79a658af2e85f553ee94ee8 Mon Sep 17 00:00:00 2001 From: william mantly Date: Sat, 1 Oct 2016 21:19:17 -0400 Subject: [PATCH] node --- create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create.sh b/create.sh index a81eca9..1d3bc2f 100644 --- a/create.sh +++ b/create.sh @@ -2,7 +2,7 @@ name="$1" sshURL="$2" -nodePort=`./random_port.py` +nodePort=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'` workingPath=/var/www/gitwrapper/$name echo "starting $sshURL on $name"