Correctly append the port to the host so it's written to the config correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6e892c0db6
commit
6cdc63ff69
|
@ -132,6 +132,10 @@ class Install extends Command {
|
||||||
} else {
|
} else {
|
||||||
$dbHost = $input->getOption('database-host');
|
$dbHost = $input->getOption('database-host');
|
||||||
}
|
}
|
||||||
|
if ($dbPort) {
|
||||||
|
// Append the port to the host so it is the same as in the config (there is no dbport config)
|
||||||
|
$dbHost .= ':' . $dbPort;
|
||||||
|
}
|
||||||
$dbTablePrefix = 'oc_';
|
$dbTablePrefix = 'oc_';
|
||||||
if ($input->hasParameterOption('--database-table-prefix')) {
|
if ($input->hasParameterOption('--database-table-prefix')) {
|
||||||
$dbTablePrefix = (string) $input->getOption('database-table-prefix');
|
$dbTablePrefix = (string) $input->getOption('database-table-prefix');
|
||||||
|
@ -181,7 +185,6 @@ class Install extends Command {
|
||||||
'dbpass' => $dbPass,
|
'dbpass' => $dbPass,
|
||||||
'dbname' => $dbName,
|
'dbname' => $dbName,
|
||||||
'dbhost' => $dbHost,
|
'dbhost' => $dbHost,
|
||||||
'dbport' => $dbPort,
|
|
||||||
'dbtableprefix' => $dbTablePrefix,
|
'dbtableprefix' => $dbTablePrefix,
|
||||||
'adminlogin' => $adminLogin,
|
'adminlogin' => $adminLogin,
|
||||||
'adminpass' => $adminPassword,
|
'adminpass' => $adminPassword,
|
||||||
|
|
Loading…
Reference in New Issue