mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
config: Allow non-standard config dir to be configured with SSL. (#3583)
This commit is contained in:
parent
caecd75a2a
commit
bf2b8879b7
@ -129,9 +129,7 @@ func setGlobalsFromContext(c *cli.Context) {
|
||||
if globalConfigDir == "" {
|
||||
console.Fatalf("Unable to get config file. Config directory is empty.")
|
||||
}
|
||||
|
||||
// Set global quiet flag.
|
||||
globalQuiet = c.Bool("quiet") || c.GlobalBool("quiet")
|
||||
|
||||
// Is TLS configured?.
|
||||
globalIsSSL = isSSL()
|
||||
}
|
||||
|
@ -165,11 +165,14 @@ func checkUpdate() {
|
||||
|
||||
// Generic Minio initialization to create/load config, prepare loggers, etc..
|
||||
func minioInit(ctx *cli.Context) {
|
||||
// Sets new config directory.
|
||||
setGlobalConfigPath(globalConfigDir)
|
||||
|
||||
// Set global variables after parsing passed arguments
|
||||
setGlobalsFromContext(ctx)
|
||||
|
||||
// Sets new config directory.
|
||||
setGlobalConfigPath(globalConfigDir)
|
||||
// Is TLS configured?.
|
||||
globalIsSSL = isSSL()
|
||||
|
||||
// Migrate any old version of config / state files to newer format.
|
||||
migrate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user