Browse Source

Merge branch 'feature_v0.2_site2site' of https://github.com/gravitl/netmaker into feature_v0.2_site2site

afeiszli 4 years ago
parent
commit
ae6fd73cce
1 changed files with 2 additions and 6 deletions
  1. 2 6
      netclient-install.sh

+ 2 - 6
netclient-install.sh

@@ -1,13 +1,9 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-[ -z "$SERVER_URL" ] && echo "Need to set SERVER_URL" && exit 1;
-[ -z "$NET_NAME" ] && echo "Need to set NET_NAME" && exit 1;
 [ -z "$KEY" ] && KEY=nokey;
 [ -z "$KEY" ] && KEY=nokey;
 
 
-
-
-wget -O netclient https://github.com/gravitl/netmaker/releases/download/latest/netclient netclient
+wget -O --backups=1 https://github.com/gravitl/netmaker/releases/download/latest/netclient
 chmod +x netclient
 chmod +x netclient
-sudo ./netclient -c install -s $SERVER_URL -g $NET_NAME -k $KEY
+sudo ./netclient -c install -t $KEY
 rm -f netclient
 rm -f netclient