Merge pull request #25106 from owncloud/stable9-allow-empty-host-when-installing-on-oracle-via-cli

[stable9] Allow empty host when installing on oracle via CLI (#25034)
This commit is contained in:
Vincent Petry 2016-06-15 10:14:57 +02:00 committed by GitHub
commit 173f732b9d
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');
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');