mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
During auth generation, create directory if it does not exist.
Addresses issue #902
This commit is contained in:
parent
f1c099af5f
commit
ac6abd608f
@ -115,6 +115,9 @@ func genAuthFirstTime() (*AuthConfig, *probe.Error) {
|
||||
if isAuthConfigFileExists() {
|
||||
return nil, nil
|
||||
}
|
||||
if err := createAuthConfigPath(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Initialize new config, since config file doesn't exist yet
|
||||
config := &AuthConfig{}
|
||||
config.Version = "0.0.1"
|
||||
|
Loading…
Reference in New Issue
Block a user