Skip to content

Commit 09a9513

Browse files
authored
Merge pull request #36400 from nextcloud/backport/34152/stable25
[stable25] Do not store generated mysql password if it was not used
2 parents 18e0118 + 57eb617 commit 09a9513

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/private/Setup/MySQL.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ private function createSpecificUser($username, $connection): void {
183183
$i++;
184184
}
185185
}
186+
} else {
187+
// Reuse existing password if a database config is already present
188+
$this->dbPassword = $rootPassword;
186189
}
187190
} catch (\Exception $ex) {
188191
$this->logger->info('Can not create a new MySQL user, will continue with the provided user.', [

0 commit comments

Comments
 (0)