more commonality to config files
This commit is contained in:
parent
37a3c96227
commit
d9be1a53fb
2
apt.go
2
apt.go
|
@ -30,8 +30,6 @@ func (me *Machine) initPackages() {
|
||||||
log.Info("added", new1.Name, "failed")
|
log.Info("added", new1.Name, "failed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info(me.Hostname, "is", me.Distro, "with", me.Packages.Len(), "packages")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (me *Machine) addNew(name string, version string) bool {
|
func (me *Machine) addNew(name string, version string) bool {
|
||||||
|
|
|
@ -99,6 +99,7 @@ func (m *Machine) ConfigLoad() error {
|
||||||
m.Hostname = hostname
|
m.Hostname = hostname
|
||||||
m.Distro = detectDistro()
|
m.Distro = detectDistro()
|
||||||
m.initPackages()
|
m.initPackages()
|
||||||
|
log.Info("zoopb.ConfigLoad()", m.Hostname, "runs", m.Distro, "with", m.Packages.Len(), "packages")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue