Skip to content

Commit 0317c5b

Browse files
committed
Correctly append the port to the host so it's written to the config correctly
Signed-off-by: Joas Schilling <[email protected]>
1 parent fca8f06 commit 0317c5b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/Command/Maintenance/Install.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ protected function validateInput(InputInterface $input, OutputInterface $output,
134134
} else {
135135
$dbHost = $input->getOption('database-host');
136136
}
137+
if ($dbPort) {
138+
// Append the port to the host so it is the same as in the config (there is no dbport config)
139+
$dbHost .= ':' . $dbPort;
140+
}
137141
$dbTablePrefix = 'oc_';
138142
if ($input->hasParameterOption('--database-table-prefix')) {
139143
$dbTablePrefix = (string) $input->getOption('database-table-prefix');
@@ -183,7 +187,6 @@ protected function validateInput(InputInterface $input, OutputInterface $output,
183187
'dbpass' => $dbPass,
184188
'dbname' => $dbName,
185189
'dbhost' => $dbHost,
186-
'dbport' => $dbPort,
187190
'dbtableprefix' => $dbTablePrefix,
188191
'adminlogin' => $adminLogin,
189192
'adminpass' => $adminPassword,

0 commit comments

Comments
 (0)