summaryrefslogtreecommitdiffstats
path: root/core/Command/Maintenance/Install.php
diff options
context:
space:
mode:
authorThomas Pulzer <t.pulzer@kniel.de>2016-07-06 09:58:38 +0200
committerThomas Pulzer <t.pulzer@kniel.de>2016-07-06 09:58:38 +0200
commitd367318088c2044427a574b1e42c48deade1bec3 (patch)
treea3cc8b55540ab039eb07f5d2be180c545578bedb /core/Command/Maintenance/Install.php
parentcf7afabf62d1e3f4c5856d7636e21496d7992257 (diff)
downloadnextcloud-server-d367318088c2044427a574b1e42c48deade1bec3.tar.gz
nextcloud-server-d367318088c2044427a574b1e42c48deade1bec3.zip
Added occ install option for database-port.
Extended the database setup to store the database port. Changed the PostgreSQL connection error message for clarification.
Diffstat (limited to 'core/Command/Maintenance/Install.php')
-rw-r--r--core/Command/Maintenance/Install.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php
index 12a61d6341a..320405cad39 100644
--- a/core/Command/Maintenance/Install.php
+++ b/core/Command/Maintenance/Install.php
@@ -50,6 +50,7 @@ class Install extends Command {
->addOption('database', null, InputOption::VALUE_REQUIRED, 'Supported database type', 'sqlite')
->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-port', null, InputOption::VALUE_OPTIONAL, 'Port the database is listening on')
->addOption('database-user', null, InputOption::VALUE_REQUIRED, 'User name to connect to the database')
->addOption('database-pass', null, InputOption::VALUE_OPTIONAL, 'Password of the database user', null)
->addOption('database-table-prefix', null, InputOption::VALUE_OPTIONAL, 'Prefix for all tables (default: oc_)', null)
@@ -106,6 +107,7 @@ class Install extends Command {
$dbUser = $input->getOption('database-user');
$dbPass = $input->getOption('database-pass');
$dbName = $input->getOption('database-name');
+ $dbPort = $input->getOption('database-port');
if ($db === 'oci') {
// an empty hostname needs to be read from the raw parameters
$dbHost = $input->getParameterOption('--database-host', '');
@@ -158,6 +160,7 @@ class Install extends Command {
'dbpass' => $dbPass,
'dbname' => $dbName,
'dbhost' => $dbHost,
+ 'dbport' => $dbPort,
'dbtableprefix' => $dbTablePrefix,
'adminlogin' => $adminLogin,
'adminpass' => $adminPassword,