diff --git a/hesabixCore/src/Command/UpdateSoftwareCommand.php b/hesabixCore/src/Command/UpdateSoftwareCommand.php index d5d1600..1b77ea6 100644 --- a/hesabixCore/src/Command/UpdateSoftwareCommand.php +++ b/hesabixCore/src/Command/UpdateSoftwareCommand.php @@ -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)); } -} \ No newline at end of file +}