mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 21:05:54 +08:00
fixing script
This commit is contained in:
parent
3301033d61
commit
a52656ce98
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue