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

This commit is contained in:
afeiszli
2021-04-12 23:19:41 -04:00

View File

@@ -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 --backups=1 https://github.com/gravitl/netmaker/releases/download/latest/netclient
wget -O netclient https://github.com/gravitl/netmaker/releases/download/latest/netclient 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