mirror of https://github.com/nextcloud/server
Do not store generated mysql password if it was not used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3ac720aaca
commit
b427ccd065
|
@ -183,6 +183,9 @@ class MySQL extends AbstractDatabase {
|
|||
$i++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Reuse existing password if a database config is already present
|
||||
$this->dbPassword = $rootPassword;
|
||||
}
|
||||
} catch (\Exception $ex) {
|
||||
$this->logger->info('Can not create a new MySQL user, will continue with the provided user.', [
|
||||
|
|
Loading…
Reference in New Issue