mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-21 07:46:04 +08:00
committing updated script
This commit is contained in:
parent
14e9573a39
commit
ed947cad88
|
@ -26,6 +26,7 @@ type Node struct {
|
|||
Endpoint string `json:"endpoint" bson:"endpoint" validate:"endpoint_check"`
|
||||
PostUp string `json:"postup" bson:"postup"`
|
||||
PreUp string `json:"preup" bson:"preup"`
|
||||
AllowedIPs string `json:"preup" bson:"preup"`
|
||||
PersistentKeepalive int32 `json:"persistentkeepalive" bson:"persistentkeepalive" validate: "omitempty,numeric,max=1000"`
|
||||
SaveConfig *bool `json:"saveconfig" bson:"saveconfig"`
|
||||
AccessKey string `json:"accesskey" bson:"accesskey"`
|
||||
|
@ -40,6 +41,8 @@ type Node struct {
|
|||
Password string `json:"password" bson:"password" validate:"password_check"`
|
||||
Group string `json:"group" bson:"group" validate:"group_exists"`
|
||||
IsPending bool `json:"ispending" bson:"ispending"`
|
||||
IsGateway bool `json:"isgateway" bson:"isgateway"`
|
||||
GatewayRange string `json:"gatewayrange" bson:"gatewayrange"`
|
||||
PostChanges string `json:"postchanges" bson:"postchanges"`
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@ type ReturnNode struct {
|
|||
Interface string `json:"interface" bson:"interface"`
|
||||
Group string `json:"group" bson:"group"`
|
||||
IsPending *bool `json:"ispending" bson:"ispending"`
|
||||
IsGateway *bool `json:"isgateway" bson:"ispending"`
|
||||
GatewayRange string `json:"gatewayrange" bson:"gatewayrange"`
|
||||
LocalAddress string `json:"localaddress" bson:"localaddress" validate:"localaddress_check"`
|
||||
ExpirationDateTime int64 `json:"expdatetime" bson:"expdatetime"`
|
||||
CheckInInterval int32 `json:"checkininterval" bson:"checkininterval"`
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ set -e
|
|||
|
||||
|
||||
|
||||
wget -O netclient https://github.com/gravitl/netmaker/releases/download/v0.1/netclient netclient
|
||||
wget -O netclient https://github.com/gravitl/netmaker/releases/download/latest/netclient netclient
|
||||
chmod +x netclient
|
||||
sudo ./netclient -c install -s $SERVER_URL -g $NET_NAME -k $KEY
|
||||
rm -f netclient
|
||||
|
|
Loading…
Reference in a new issue