diff --git a/README.ja.md b/README.ja.md index d2a9eaa4..b443bd75 100644 --- a/README.ja.md +++ b/README.ja.md @@ -395,7 +395,7 @@ web/app server in the same configuration under the load balancer | RHEL | 5, 6, 7| | CentOS | 5, 6, 7| | Amazon Linux| All| -| FreeBSD | 10| +| FreeBSD | 10, 11| | Raspbian | Wheezy, Jessie | ---- diff --git a/README.md b/README.md index fcd54664..d3802e64 100644 --- a/README.md +++ b/README.md @@ -396,7 +396,7 @@ If there is a staging environment with the same configuration as the production | RHEL | 5, 6, 7| | CentOS | 5, 6, 7| | Amazon Linux| All| -| FreeBSD | 10| +| FreeBSD | 10, 11| | Raspbian | Wheezy, Jessie | ---- diff --git a/scan/freebsd.go b/scan/freebsd.go index e318f404..a3df6ec4 100644 --- a/scan/freebsd.go +++ b/scan/freebsd.go @@ -48,7 +48,7 @@ func detectFreebsd(c config.ServerInfo) (itsMe bool, bsd osTypeInterface) { if r := exec(c, "uname", noSudo); r.isSuccess() { if strings.Contains(r.Stdout, "FreeBSD") == true { - if b := exec(c, "uname -r", noSudo); b.isSuccess() { + if b := exec(c, "freebsd-version", noSudo); b.isSuccess() { rel := strings.TrimSpace(b.Stdout) bsd.setDistro("FreeBSD", rel) return true, bsd