Merge pull request #36401 from nextcloud/backport/34152/stable24

[stable24] Do not store generated mysql password if it was not used
This commit is contained in:
Simon L 2023-01-27 13:39:03 +01:00 committed by GitHub
commit 8f3bdbd2b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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