fixing script

This commit is contained in:
afeiszli 2021-11-05 09:59:42 -04:00
parent 3301033d61
commit a52656ce98

View file

@ -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