mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 10:10:46 +08:00
14 lines
343 B
Bash
Executable file
14 lines
343 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
token=$1
|
|
|
|
token_json=$(echo $token | base64 -d)
|
|
|
|
api_addr=$(echo $token_json | jq -r '.apiconn')
|
|
grpc_addr=$(echo $token_json | jq -r '.grpcconn')
|
|
network=$(echo $token_json | jq -r '.network')
|
|
key=$(echo $token_json | jq -r '.key')
|
|
|
|
echo ./netclient join -k $key -n $network --apiserver $api_addr --grpcserver $grpc_addr
|