diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-06-10 12:16:32 +0300 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-06-10 12:16:32 +0300 |
commit | c45b7b0bdf801a2a58fc28602285d52331456222 (patch) | |
tree | 32d677b514573e370060019b442f2e86a99a408c /core/Command/Maintenance/Install.php | |
parent | 1abe5b0408f7db851129bf283ac9ad159c6ebb9d (diff) |
Allow empty host when installing on oracle via CLI (#25034)
Diffstat (limited to 'core/Command/Maintenance/Install.php')
-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'); |