diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-06-10 12:16:32 +0300 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-06-14 21:09:44 +0300 |
commit | ea330dfa6a249985422728a66ccc2a7722a2223f (patch) | |
tree | d9ec11228215843b28a8f28801a01b68fb77862b /core | |
parent | 3e846a4821de32396bc33120633b85abc47e2373 (diff) |
Allow empty host when installing on oracle via CLI (#25034)
Diffstat (limited to 'core')
-rw-r--r-- | core/command/maintenance/install.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/command/maintenance/install.php b/core/command/maintenance/install.php index b1b63b9b3bd..12a61d6341a 100644 --- a/core/command/maintenance/install.php +++ b/core/command/maintenance/install.php @@ -106,7 +106,12 @@ class Install extends Command { $dbUser = $input->getOption('database-user'); $dbPass = $input->getOption('database-pass'); $dbName = $input->getOption('database-name'); - $dbHost = $input->getOption('database-host'); + if ($db === 'oci') { + // an empty hostname needs to be read from the raw parameters + $dbHost = $input->getParameterOption('--database-host', ''); + } else { + $dbHost = $input->getOption('database-host'); + } $dbTablePrefix = 'oc_'; if ($input->hasParameterOption('--database-table-prefix')) { $dbTablePrefix = (string) $input->getOption('database-table-prefix'); |