aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/setup/postgresql.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/setup/postgresql.php')
-rw-r--r--lib/private/setup/postgresql.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/setup/postgresql.php b/lib/private/setup/postgresql.php
index 0a559e7a589..59762209d08 100644
--- a/lib/private/setup/postgresql.php
+++ b/lib/private/setup/postgresql.php
@@ -66,7 +66,8 @@ class PostgreSQL extends AbstractDatabase {
$this->createDBUser($connection);
}
- \OC_Config::setValues([
+ $systemConfig = \OC::$server->getSystemConfig();
+ $systemConfig->setValues([
'dbuser' => $this->dbUser,
'dbpassword' => $this->dbPassword,
]);
@@ -78,8 +79,8 @@ class PostgreSQL extends AbstractDatabase {
pg_close($connection);
// connect to the ownCloud database (dbname=$this->dbname) and check if it needs to be filled
- $this->dbUser = \OC_Config::getValue('dbuser');
- $this->dbPassword = \OC_Config::getValue('dbpassword');
+ $this->dbUser = $systemConfig->getValue('dbuser');
+ $this->dbPassword = $systemConfig->getValue('dbpassword');
$e_host = addslashes($this->dbHost);
$e_dbname = addslashes($this->dbName);