Browse Source

fixing script

afeiszli 3 years ago
parent
commit
a52656ce98
1 changed files with 6 additions and 0 deletions
  1. 6 0
      scripts/netclient-install.sh

+ 6 - 0
scripts/netclient-install.sh

@@ -106,5 +106,11 @@ else
 	wget -nv -O netclient https://github.com/gravitl/netmaker/releases/download/latest/$dist
 fi
 chmod +x netclient
+
+if [ -z "${NAME}" ]; then
+sudo ./netclient join -t $KEY
+else
 sudo ./netclient join -t $KEY --name $NAME
+fi
+
 rm -f netclient