mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
docker: the docker image will now contain just the static binary
This commit is contained in:
@@ -21,7 +21,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/user"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/fatih/color"
|
||||
@@ -124,9 +123,9 @@ func getConfigPath() (string, *probe.Error) {
|
||||
if customConfigPath != "" {
|
||||
return customConfigPath, nil
|
||||
}
|
||||
u, err := user.Current()
|
||||
u, err := userCurrent()
|
||||
if err != nil {
|
||||
return "", probe.NewError(err)
|
||||
return "", err.Trace()
|
||||
}
|
||||
configPath := filepath.Join(u.HomeDir, ".minio")
|
||||
return configPath, nil
|
||||
|
||||
Reference in New Issue
Block a user