mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 00:24:37 +08:00
Update netclient-install.sh
This commit is contained in:
parent
087cabe9a4
commit
ec6e5418a5
1 changed files with 3 additions and 3 deletions
|
@ -2,12 +2,12 @@
|
|||
set -e
|
||||
|
||||
[ -z "$SERVER_URL" ] && echo "Need to set SERVER_URL" && exit 1;
|
||||
[ -z "$NETWORK_NAME" ] && echo "Need to set NETWORK_NAME" && exit 1;
|
||||
[ -z "$KEY_VALUE" ] && KEY_VALUE=nokey;
|
||||
[ -z "$NET_NAME" ] && echo "Need to set NET_NAME" && exit 1;
|
||||
[ -z "$KEY_VALUE" ] && KEY=nokey;
|
||||
|
||||
|
||||
|
||||
wget -O netclient https://github.com/gravitl/netmaker/releases/download/v0.1/netclient
|
||||
chmod +x netclient
|
||||
sudo ./netclient -c install -s $SERVER_URL -g $NETWORK_NAME -k $KEY_VALUE
|
||||
sudo ./netclient -c install -s $SERVER_URL -g $NET_NAME -k $KEY
|
||||
rm -f netclient
|
||||
|
|
Loading…
Reference in a new issue