diff options
| author | Jeff Carr <[email protected]> | 2025-03-22 05:22:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-22 05:22:04 -0500 |
| commit | b2ed4102763421924b29ab4bb6be1a1e5b4b9647 (patch) | |
| tree | 679db085b742c1eb5b0f3fb75aac54507e993620 /init.go | |
| parent | 68127e4356d00604b454bfee002a7fda233fb773 (diff) | |
work on setting the hostname in the patchset
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -145,28 +145,10 @@ func (f *Forge) InitPB() { } func (f *Forge) InitMachine() { - /* - f.Machine = new(zoopb.Machine) - if err := f.Machine.ConfigLoad(); err != nil { - log.Log(WARN, "zoopb.ConfigLoad() failed", err) - f.Machine.InitWit() - } - */ - if f.Config.Username == "" { usr, _ := user.Current() f.Config.Username = usr.Username } - - /* - if f.Machine.Hostname == "" { - r, err := shell.RunVerbose([]string{"hostname", "-f"}) - if err == nil { - tmp := strings.Join(r.Stdout, "\n") - f.Machine.Hostname = strings.TrimSpace(tmp) - } - } - */ } // only init's the protobuf. intended to not scan or change anything |
