fix(linux): fedora & centos support

This commit is contained in:
bh90210
2019-07-29 19:12:05 +03:00
parent c1a13ab6d0
commit 21fdb3be7d
3 changed files with 35 additions and 12 deletions

View File

@@ -79,10 +79,8 @@ func GetLinuxDistroInfo() *DistroInfo {
}
// Check distro name against list of distros
result.Release = version
result.DiscoveredBy = "os-release"
result.DiscoveredBy = "/etc/os-release"
switch osID {
case "rhel":
result.Distribution = RedHat
case "fedora":
result.Distribution = Fedora
case "centos":