diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-09-20 08:39:25 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-01-27 06:43:39 +0000 |
commit | 57eb617b1e1f437870baee5dc2b2a05a3151d92d (patch) | |
tree | 9de9956c8d58d13486877016cb33cd3c2ad7d2f2 /lib | |
parent | 350fdd96208c2ac0042bf71dbf6f8633c48ff5bf (diff) | |
download | nextcloud-server-57eb617b1e1f437870baee5dc2b2a05a3151d92d.tar.gz nextcloud-server-57eb617b1e1f437870baee5dc2b2a05a3151d92d.zip |
Do not store generated mysql password if it was not used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Setup/MySQL.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php index e3004c269bc..caa73edccec 100644 --- a/lib/private/Setup/MySQL.php +++ b/lib/private/Setup/MySQL.php @@ -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.', [ |