Allow empty host when installing on oracle via CLI (#25034)

This commit is contained in:
Jörn Friedrich Dreyer 2016-06-10 11:16:32 +02:00 committed by Lukas Reschke
parent 459aa933b9
commit 38663e13cc
No known key found for this signature in database
GPG Key ID: 9AB0ADB949B6898C
1 changed files with 6 additions and 1 deletions

View File

@ -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');