Explorar o código

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

afeiszli %!s(int64=4) %!d(string=hai) anos
pai
achega
ae6fd73cce
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      netclient-install.sh

+ 2 - 6
netclient-install.sh

@@ -1,13 +1,9 @@
 #!/bin/sh
 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;
 
-
-
-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
-sudo ./netclient -c install -s $SERVER_URL -g $NET_NAME -k $KEY
+sudo ./netclient -c install -t $KEY
 rm -f netclient