mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 13:44:37 +08:00
25 lines
424 B
Go
25 lines
424 B
Go
|
package upgrades
|
||
|
|
||
|
import (
|
||
|
"github.com/gravitl/netmaker/netclient/config"
|
||
|
)
|
||
|
|
||
|
var upgrade0161 = UpgradeInfo{
|
||
|
RequiredVersions: []string{
|
||
|
"v0.14.6",
|
||
|
"v0.15.0",
|
||
|
"v0.15.1",
|
||
|
"v0.15.2",
|
||
|
"v0.16.1",
|
||
|
},
|
||
|
NewVersion: "v0.16.1",
|
||
|
OP: update0161,
|
||
|
}
|
||
|
|
||
|
func update0161(cfg *config.ClientConfig) {
|
||
|
// set connect default if not present 15.X -> 16.0
|
||
|
if cfg.Node.Connected == "" {
|
||
|
cfg.Node.SetDefaultConnected()
|
||
|
}
|
||
|
}
|