summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-07 13:10:43 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-07 13:10:43 +0000
commitf43b047636b2ccbbdc323101bfa17b57ac5f210a (patch)
tree446235f21e98b3f1eb42596bc90b58e1b3a0719a /core
parent73c21571710b58f6eef807efae991403f00577d7 (diff)
downloadnextcloud-server-f43b047636b2ccbbdc323101bfa17b57ac5f210a.tar.gz
nextcloud-server-f43b047636b2ccbbdc323101bfa17b57ac5f210a.zip
Convert 'abcpassword' to 'abcpass' during setup
This allows autoconfig files to use 'dbpassword' instead of 'dbpass', which is more consistent with config.php
Diffstat (limited to 'core')
-rw-r--r--core/setup/controller.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php
index 8465008d573..cc7f4a3a985 100644
--- a/core/setup/controller.php
+++ b/core/setup/controller.php
@@ -55,6 +55,14 @@ class Controller {
$post = $this->loadAutoConfig($post);
$opts = $this->getSystemInfo();
+ // convert 'abcpassword' to 'abcpass'
+ if (isset($post['adminpassword'])) {
+ $post['adminpass'] = $post['adminpassword'];
+ }
+ if (isset($post['dbpassword'])) {
+ $post['dbpass'] = $post['dbpassword'];
+ }
+
if(isset($post['install']) AND $post['install']=='true') {
// We have to launch the installation process :
$e = \OC\Setup::install($post);