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 Thomas Müller
parent 1abe5b0408
commit c45b7b0bdf
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');