Update UpdateSoftwareCommand.php

This commit is contained in:
M011N1N6 2025-03-06 04:04:49 +03:30 committed by GitHub
parent a964ace9de
commit be0e660271
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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';