mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
allow loading some from config and some values from ENVs (#9872)
A regression perhaps introduced in #9851
This commit is contained in:
@@ -162,9 +162,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
srvCfg := newServerConfig()
|
||||
|
||||
// Override any values from ENVs.
|
||||
lookupConfigOnce.Do(func() {
|
||||
lookupConfigs(srvCfg)
|
||||
})
|
||||
lookupConfigs(srvCfg)
|
||||
|
||||
// hold the mutex lock before a new config is assigned.
|
||||
globalServerConfigMu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user