Ignore migration if config files don't exist (#6448)

master
Harshavardhana 6 years ago committed by kannappanr
parent fb4186f6b9
commit 5479a6e33e
  1. 3
      cmd/config.go

@ -270,7 +270,8 @@ func initConfig(objAPI ObjectLayer) error {
}
// Migrates ${HOME}/.minio/config.json or config.json.deprecated
// to '<export_path>/.minio.sys/config/config.json'
if err := migrateConfigToMinioSys(objAPI); err != nil {
// ignore if the file doesn't exist.
if err := migrateConfigToMinioSys(objAPI); err != nil && !os.IsNotExist(err) {
return err
}
}

Loading…
Cancel
Save