From da0283b50bc94efca1d0ba4af5d47eb79f979bae Mon Sep 17 00:00:00 2001 From: Bozhidar Slaveykov Date: Wed, 20 Mar 2024 11:34:16 +0200 Subject: [PATCH] update --- plib/controllers/IndexController.php | 7 +------ plib/library/Task/AppDownload.php | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/plib/controllers/IndexController.php b/plib/controllers/IndexController.php index d2ee642..eb8b9eb 100644 --- a/plib/controllers/IndexController.php +++ b/plib/controllers/IndexController.php @@ -79,12 +79,7 @@ public function indexAction() if (pm_Session::getClient()->isAdmin()) { Modules_Microweber_Helper::checkAndFixSchedulerTasks(); } - - - $task = new Modules_Microweber_Task_AppDownload(); - $task->run(); - echo 1; - die(); + $this->_checkAppSettingsIsCorrect(); $this->view->errorMessage = false; diff --git a/plib/library/Task/AppDownload.php b/plib/library/Task/AppDownload.php index 074908f..9eb0e74 100644 --- a/plib/library/Task/AppDownload.php +++ b/plib/library/Task/AppDownload.php @@ -52,14 +52,12 @@ public function run() $appSharedPath = Modules_Microweber_Config::getAppSharedPath(); - $downloadLog .= pm_ApiCli::callSbin('download_file.sh', [ + $downloadZipFile = pm_ApiCli::callSbin('download_file.sh', [ base64_encode($release['url']), $appSharedPath, 'microweber-app.zip' ])['stdout']; - die($downloadLog); - $this->updateProgress(50);