File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ import (
11
11
)
12
12
13
13
type Config struct {
14
- MainServer string `yaml:"main_server"`
15
- Branch string `yaml:"branch"`
16
- Password string `yaml:"password"`
17
- DataDir string `yaml:"data_dir"`
18
- ServerType string `yaml:"server_type"`
19
- ServerName string `yaml:"server_name"`
20
- InternalKey string `yaml:"internal_key"`
21
- UpdatesFolder string `yaml:"updates_folder"`
14
+ MainServer string `yaml:"main_server"`
15
+ Branch string `yaml:"branch"`
16
+ Password string `yaml:"password"`
17
+ DataDir string `yaml:"data_dir"`
18
+ ServerType string `yaml:"server_type"`
19
+ ServerName string `yaml:"server_name"`
20
+ InternalKey string `yaml:"internal_key"`
21
+ UpdatesFolder string `yaml:"updates_folder"`
22
+ MappingName * string `yaml:"mapping_name,omitempty"`
22
23
}
23
24
24
25
var (
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ func Install() error {
116
116
if ! config .ConnectedToInternet {
117
117
fmt .Println (" [SKIPPED] (AirGap mode detected, skipping Docker installation)" )
118
118
} else {
119
- fmt .Print ("Installing Docker" )
120
119
if err := docker .InstallDocker (distro ); err != nil {
121
120
return err
122
121
}
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ func RegisterInstance() error {
41
41
}
42
42
43
43
serverConfig := config .GetConfig ()
44
- if serverConfig != nil && (serverConfig .Branch == "alpha" || serverConfig .Branch == "beta" || serverConfig . Branch == "rc " ) {
45
- instanceRegisterReq .MappingName = serverConfig .ServerName
44
+ if serverConfig != nil && (serverConfig .MappingName != nil && * serverConfig .MappingName != " " ) {
45
+ instanceRegisterReq .MappingName = * serverConfig .MappingName
46
46
}
47
47
48
48
instanceJSON , err := json .Marshal (instanceRegisterReq )
You can’t perform that action at this time.
0 commit comments