mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 15:13:59 -06:00
Fixed message displayed during installation process
This commit is contained in:
parent
9d7db96e4b
commit
9d9b61cf14
@ -46,12 +46,12 @@ final class Version20180913205455 extends AbstractMigration
|
|||||||
|
|
||||||
$qb->setParameters([
|
$qb->setParameters([
|
||||||
'id' => $row['id'],
|
'id' => $row['id'],
|
||||||
'obfuscatedAddr' => $this->determineAddress((string) $addr, $row),
|
'obfuscatedAddr' => $this->determineAddress((string) $addr),
|
||||||
])->execute();
|
])->execute();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function determineAddress(string $addr, array $row): ?string
|
private function determineAddress(string $addr): ?string
|
||||||
{
|
{
|
||||||
if ($addr === IpAddress::LOCALHOST) {
|
if ($addr === IpAddress::LOCALHOST) {
|
||||||
return $addr;
|
return $addr;
|
||||||
|
@ -235,7 +235,11 @@ class InstallCommand extends Command
|
|||||||
$this->phpBinary = $this->phpFinder->find(false) ?: 'php';
|
$this->phpBinary = $this->phpFinder->find(false) ?: 'php';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->io->writeln('Running "' . sprintf('%s %s', $this->phpBinary, $command) . '"');
|
$this->io->write(
|
||||||
|
' <options=bold>[Running "' . sprintf('%s %s', $this->phpBinary, $command) . '"]</> ',
|
||||||
|
false,
|
||||||
|
OutputInterface::VERBOSITY_VERBOSE
|
||||||
|
);
|
||||||
$process = $this->processHelper->run($output, sprintf('%s %s', $this->phpBinary, $command));
|
$process = $this->processHelper->run($output, sprintf('%s %s', $this->phpBinary, $command));
|
||||||
if ($process->isSuccessful()) {
|
if ($process->isSuccessful()) {
|
||||||
$this->io->writeln(' <info>Success!</info>');
|
$this->io->writeln(' <info>Success!</info>');
|
||||||
|
Loading…
Reference in New Issue
Block a user