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 (
1111)
1212
1313type 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"`
2223}
2324
2425var (
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ func Install() error {
116116 if ! config .ConnectedToInternet {
117117 fmt .Println (" [SKIPPED] (AirGap mode detected, skipping Docker installation)" )
118118 } else {
119- fmt .Print ("Installing Docker" )
120119 if err := docker .InstallDocker (distro ); err != nil {
121120 return err
122121 }
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ func RegisterInstance() error {
4141 }
4242
4343 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
4646 }
4747
4848 instanceJSON , err := json .Marshal (instanceRegisterReq )
You can’t perform that action at this time.
0 commit comments