rewrite minio runtime checks

This commit is contained in:
Anand Babu (AB) Periasamy
2016-02-15 17:56:56 +05:30
parent e73301944a
commit bbca70e13b
21 changed files with 1574 additions and 202 deletions

View File

@@ -24,9 +24,9 @@ import (
"path/filepath"
"github.com/fatih/color"
"github.com/minio/go-homedir"
"github.com/minio/minio/pkg/probe"
"github.com/minio/minio/pkg/quick"
"github.com/minio/minio/pkg/user"
)
// configV1
@@ -133,7 +133,7 @@ func getConfigPath() (string, *probe.Error) {
if customConfigPath != "" {
return customConfigPath, nil
}
homeDir, e := user.HomeDir()
homeDir, e := homedir.Dir()
if e != nil {
return "", probe.NewError(e)
}