Print message when creating the config file (#3089)

This commit is contained in:
Anis Elleuch
2016-10-27 02:44:22 +01:00
committed by Harshavardhana
parent f7c20b97a1
commit a15dc5fed5
7 changed files with 21 additions and 18 deletions

View File

@@ -171,8 +171,11 @@ func Main() {
migrate()
// Initialize config.
err := initConfig()
configCreated, err := initConfig()
fatalIf(err, "Unable to initialize minio config.")
if configCreated {
console.Println("Created minio configuration file at " + mustGetConfigPath())
}
// Fetch access keys from environment variables and update the config.
accessKey := os.Getenv("MINIO_ACCESS_KEY")