mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
Ignore migration if config files don't exist (#6448)
This commit is contained in:
parent
fb4186f6b9
commit
5479a6e33e
@ -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…
Reference in New Issue
Block a user