mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fix go installation check on amazon instance
This commit is contained in:
parent
46ab20dcee
commit
75788c7a1d
@ -104,7 +104,12 @@ check_golang_env() {
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ "$(dirname ${go_binary_path})" != "${GOROOT%%*(/)}/bin" ] ; then
|
||||
local new_go_binary_path=${go_binary_path}
|
||||
if [ -h "${go_binary_path}" ]; then
|
||||
new_go_binary_path=$(/bin/readlink -f ${go_binary_path})
|
||||
fi
|
||||
|
||||
if [[ !"$(dirname ${new_go_binary_path})" =~ *"${GOROOT%%*(/)}"* ]] ; then
|
||||
echo "The go binary found in your PATH configuration does not belong to the Go installation pointed by your GOROOT environment," \
|
||||
"please refer to Go installation document"
|
||||
echo "https://github.com/minio/minio/blob/master/INSTALLGO.md#install-go-13"
|
||||
|
@ -52,7 +52,8 @@ func GetDisks() (Disks, error) {
|
||||
|
||||
sysFiles, err := ioutil.ReadDir(sysFSDEVICES)
|
||||
if err != nil {
|
||||
return Disks{}, iodine.New(err, nil)
|
||||
// may be an amazon instance, ignore this
|
||||
return Disks{}, nil
|
||||
}
|
||||
|
||||
scsidevices = filterdisks(sysFiles)
|
||||
|
Loading…
Reference in New Issue
Block a user