Explorar el Código

fixing script

afeiszli hace 3 años
padre
commit
a52656ce98
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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