mirror of
https://github.com/minio/minio.git
synced 2026-11-12 22:42:20 +00:00
check for update in background (#13889)
This commit is contained in:
1 parent
3e34e41a5a
commit
8144a125ce
3 files changed
+15
-10
No files matched your search
+7
-4
@@ -460,10 +460,13 @@ func serverMain(ctx *cli.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
if !globalCLIContext.Quiet && !globalInplaceUpdateDisabled {
|
||||
// Check for new updates from dl.min.io.
|
||||
checkUpdate(getMinioMode())
|
||||
}
|
||||
// Check for updates in non-blocking manner.
|
||||
go func() {
|
||||
if !globalCLIContext.Quiet && !globalInplaceUpdateDisabled {
|
||||
// Check for new updates from dl.min.io.
|
||||
checkUpdate(getMinioMode())
|
||||
}
|
||||
}()
|
||||
|
||||
if !globalActiveCred.IsValid() && globalIsDistErasure {
|
||||
globalActiveCred = auth.DefaultCredentials
|
||||
|
||||
Reference in new issue
Block a user