mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
update: Minio fix update url.
This commit is contained in:
parent
dfc84dd451
commit
0799a0bec5
@ -140,7 +140,8 @@ func parseReleaseData(data string) (time.Time, *probe.Error) {
|
|||||||
|
|
||||||
// verify updates for releases.
|
// verify updates for releases.
|
||||||
func getReleaseUpdate(updateURL string) {
|
func getReleaseUpdate(updateURL string) {
|
||||||
newUpdateURL := updateURL + "/" + runtime.GOOS + "-" + runtime.GOARCH + "/minio.shasum"
|
newUpdateURLPrefix := updateURL + "/" + runtime.GOOS + "-" + runtime.GOARCH
|
||||||
|
newUpdateURL := newUpdateURLPrefix + "/minio.shasum"
|
||||||
data, e := http.Get(newUpdateURL)
|
data, e := http.Get(newUpdateURL)
|
||||||
fatalIf(probe.NewError(e), "Unable to read from update URL ‘"+newUpdateURL+"’.", nil)
|
fatalIf(probe.NewError(e), "Unable to read from update URL ‘"+newUpdateURL+"’.", nil)
|
||||||
|
|
||||||
@ -170,9 +171,9 @@ func getReleaseUpdate(updateURL string) {
|
|||||||
|
|
||||||
var downloadURL string
|
var downloadURL string
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
downloadURL = updateURL + runtime.GOOS + "-" + runtime.GOARCH + "/minio.exe"
|
downloadURL = newUpdateURLPrefix + "/minio.exe"
|
||||||
} else {
|
} else {
|
||||||
downloadURL = updateURL + runtime.GOOS + "-" + runtime.GOARCH + "/minio"
|
downloadURL = newUpdateURLPrefix + "/minio"
|
||||||
}
|
}
|
||||||
updateMsg := updateMessage{
|
updateMsg := updateMessage{
|
||||||
Download: downloadURL,
|
Download: downloadURL,
|
||||||
|
Loading…
Reference in New Issue
Block a user