Update UpdateSoftwareCommand.php
This commit is contained in:
parent
a964ace9de
commit
be0e660271
|
@ -290,7 +290,7 @@ class UpdateSoftwareCommand extends Command
|
|||
private function backupDatabase(): string
|
||||
{
|
||||
$backupFile = $this->backupDir . '/db_backup_' . time() . '.sql';
|
||||
$dbUrl = $this->params->get('database_url');
|
||||
$dbUrl = $this->params->get('DATABASE_URL');
|
||||
$urlParts = parse_url($dbUrl);
|
||||
|
||||
$dbHost = $urlParts['host'] ?? 'localhost';
|
||||
|
@ -429,4 +429,4 @@ class UpdateSoftwareCommand extends Command
|
|||
$state['log'] .= $output->getVerbosity() >= OutputInterface::VERBOSITY_NORMAL ? $message . "\n" : '';
|
||||
file_put_contents($this->stateFile, json_encode($state));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue