|
|
@ -165,11 +165,14 @@ func checkUpdate() { |
|
|
|
|
|
|
|
|
|
|
|
// Generic Minio initialization to create/load config, prepare loggers, etc..
|
|
|
|
// Generic Minio initialization to create/load config, prepare loggers, etc..
|
|
|
|
func minioInit(ctx *cli.Context) { |
|
|
|
func minioInit(ctx *cli.Context) { |
|
|
|
|
|
|
|
// Sets new config directory.
|
|
|
|
|
|
|
|
setGlobalConfigPath(globalConfigDir) |
|
|
|
|
|
|
|
|
|
|
|
// Set global variables after parsing passed arguments
|
|
|
|
// Set global variables after parsing passed arguments
|
|
|
|
setGlobalsFromContext(ctx) |
|
|
|
setGlobalsFromContext(ctx) |
|
|
|
|
|
|
|
|
|
|
|
// Sets new config directory.
|
|
|
|
// Is TLS configured?.
|
|
|
|
setGlobalConfigPath(globalConfigDir) |
|
|
|
globalIsSSL = isSSL() |
|
|
|
|
|
|
|
|
|
|
|
// Migrate any old version of config / state files to newer format.
|
|
|
|
// Migrate any old version of config / state files to newer format.
|
|
|
|
migrate() |
|
|
|
migrate() |
|
|
|