From be0e660271d8d060d9f706003f25ecb4c236b5e2 Mon Sep 17 00:00:00 2001 From: M011N1N6 Date: Thu, 6 Mar 2025 04:04:49 +0330 Subject: [PATCH] Update UpdateSoftwareCommand.php --- hesabixCore/src/Command/UpdateSoftwareCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}