summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-29 21:19:28 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-29 21:19:28 +0200
commit8955f38e55e5ec99e79fae6ab999185fcceb0466 (patch)
tree1aaf651fa3b0a6469a5a8afa14ada685658c9dd0
parent002d74f95ab8d06e969fdd2c3ceeca4e766f3251 (diff)
parentb0d1d61db2b9a5eda23e4e496bcacad861ed5774 (diff)
downloadnextcloud-server-8955f38e55e5ec99e79fae6ab999185fcceb0466.tar.gz
nextcloud-server-8955f38e55e5ec99e79fae6ab999185fcceb0466.zip
Merge pull request #15926 from owncloud/install-empty-pw
Make it possible to pass empty database passwords to install command
-rw-r--r--core/command/maintenance/install.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/command/maintenance/install.php b/core/command/maintenance/install.php
index d55bc0ba3bd..361e63154c8 100644
--- a/core/command/maintenance/install.php
+++ b/core/command/maintenance/install.php
@@ -49,7 +49,7 @@ class Install extends Command {
->addOption('database-name', null, InputOption::VALUE_REQUIRED, 'Name of the database')
->addOption('database-host', null, InputOption::VALUE_REQUIRED, 'Hostname of the database', 'localhost')
->addOption('database-user', null, InputOption::VALUE_REQUIRED, 'User name to connect to the database')
- ->addOption('database-pass', null, InputOption::VALUE_REQUIRED, 'Password of the database user')
+ ->addOption('database-pass', null, InputOption::VALUE_REQUIRED, 'Password of the database user', null)
->addOption('database-table-prefix', null, InputOption::VALUE_OPTIONAL, 'Prefix for all tables (default: oc_)', null)
->addOption('admin-user', null, InputOption::VALUE_REQUIRED, 'User name of the admin account', 'admin')
->addOption('admin-pass', null, InputOption::VALUE_REQUIRED, 'Password of the admin account')
@@ -102,6 +102,9 @@ class Install extends Command {
$dbTablePrefix = (string) $input->getOption('database-table-prefix');
$dbTablePrefix = trim($dbTablePrefix);
}
+ if ($input->hasParameterOption('--database-pass')) {
+ $dbPass = (string) $input->getOption('database-pass');
+ }
$adminLogin = $input->getOption('admin-user');
$adminPassword = $input->getOption('admin-pass');
$dataDir = $input->getOption('data-dir');