Added FreeBSD support.

This commit is contained in:
justyn
2016-06-02 23:11:00 -05:00
parent a29b2a2ad9
commit e5bfa1bd6f
2 changed files with 258 additions and 1 deletions

View File

@@ -112,6 +112,10 @@ func detectOS(c config.ServerInfo) (osType osTypeInterface) {
if itsMe {
return
}
itsMe, osType = detectFreebsd(c)
if itsMe {
return
}
osType.setErrs([]error{fmt.Errorf("Unknown OS Type")})
return
@@ -126,7 +130,6 @@ func InitServers(localLogger *logrus.Entry) error {
return fmt.Errorf("Failed to detect server OSes. err: %s", err)
}
servers = hosts
Log.Info("Detecting Container OS...")
containers, err := detectContainerOSes()
if err != nil {