config: Allow non-standard config dir to be configured with SSL. (#3583)

This commit is contained in:
Harshavardhana
2017-01-15 16:53:01 -08:00
committed by GitHub
parent caecd75a2a
commit bf2b8879b7
2 changed files with 6 additions and 5 deletions

View File

@@ -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()