Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 20, 2024
1 parent 6d903f7 commit da0283b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions plib/controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions plib/library/Task/AppDownload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down

0 comments on commit da0283b

Please sign in to comment.