Merge pull request #34152 from nextcloud/bugfix/noid/db-password-install

Do not store generated mysql password if it was not used
This commit is contained in:
Vincent Petry 2022-09-28 15:09:03 +02:00 committed by GitHub
commit 20b75480d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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.', [