From 0f3d9384170209ac2c772eabc1afb199c230f683 Mon Sep 17 00:00:00 2001 From: Pathologic Date: Sun, 17 Dec 2023 00:34:31 +0300 Subject: [PATCH] fix --- core/src/Console/SiteUpdateCommand.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/Console/SiteUpdateCommand.php b/core/src/Console/SiteUpdateCommand.php index 13b8ee8169..c4db3c746d 100644 --- a/core/src/Console/SiteUpdateCommand.php +++ b/core/src/Console/SiteUpdateCommand.php @@ -156,10 +156,7 @@ public function startUpdate() } } } - putenv('COMPOSER_HOME=' . EVO_CORE_PATH . 'composer'); - $input = new ArrayInput(array('command' => 'update')); - $application = new Application(); - $application->setAutoExit(false); + if (!$application->run($input)) { echo "Run Migrations\n"; exec('php ../install/cli-install.php --typeInstall=2 --removeInstall=y');