Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
m2 /
update /
Delete
Unzip
Name
Size
Permission
Date
Action
app
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
dev
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
pub
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
var
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
vendor
[ DIR ]
drwxr-xr-x
2020-05-15 13:43
.gitignore
116
B
-rw-r--r--
2020-04-22 16:47
.htaccess
78
B
-rw-r--r--
2020-04-22 16:47
CODE_OF_CONDUCT.md
3.14
KB
-rw-r--r--
2020-04-22 16:47
CONTRIBUTING.md
4.33
KB
-rw-r--r--
2020-04-22 16:47
LICENSE.md
10.12
KB
-rw-r--r--
2020-04-22 16:47
README.md
2.5
KB
-rw-r--r--
2020-04-22 16:47
composer.json
727
B
-rw-r--r--
2020-04-22 16:47
composer.lock
84.18
KB
-rw-r--r--
2020-04-22 16:47
cron.php
2.65
KB
-rw-r--r--
2020-04-22 16:47
index.php
3.41
KB
-rw-r--r--
2020-04-22 16:47
Save
Rename
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ require_once __DIR__ . '/app/bootstrap.php'; /** * Update cron exit codes */ const UPDATE_CRON_NORMAL_EXIT = 0; const UPDATE_CRON_EXIT_WITH_ERROR = 1; $status = new \Magento\Update\Status(); $cronReadinessChecker = new \Magento\Update\CronReadinessCheck(); $notification = 'update-cron: Please check var/log/update.log for execution summary.' . PHP_EOL; if (!$cronReadinessChecker->runReadinessCheck()) { print $notification; exit(UPDATE_CRON_EXIT_WITH_ERROR); } if ($status->isUpdateInProgress()) { $status->add('Update is already in progress.', \Psr\Log\LogLevel::WARNING); print $notification; exit(UPDATE_CRON_EXIT_WITH_ERROR); } if ($status->isUpdateError()) { $status->add('There was an error in previous Update attempt.'); print $notification; exit(UPDATE_CRON_EXIT_WITH_ERROR); } $backupDirectory = BACKUP_DIR; if (!file_exists($backupDirectory)) { if (!mkdir($backupDirectory)) { $status->add(sprintf('Backup directory, "%s" cannot be created.', $backupDirectory), \Psr\Log\LogLevel::ERROR); print $notification; exit(UPDATE_CRON_EXIT_WITH_ERROR); } chmod($backupDirectory, 0770); } try { $status->setUpdateInProgress(); } catch (\RuntimeException $e) { $status->add($e->getMessage(), \Psr\Log\LogLevel::ERROR); print $notification; exit(UPDATE_CRON_EXIT_WITH_ERROR); } $jobQueue = new \Magento\Update\Queue(); $exitCode = UPDATE_CRON_NORMAL_EXIT; try { while (!empty($jobQueue->peek()) && strpos($jobQueue->peek()[\Magento\Update\Queue::KEY_JOB_NAME], 'setup:') === false ) { $job = $jobQueue->popQueuedJob(); $status->add( sprintf('Job "%s" has been started', $job) ); try { $job->execute(); $status->add(sprintf('Job "%s" has successfully completed', $job), \Psr\Log\LogLevel::INFO); } catch (\Exception $e) { $status->setUpdateError(); $status->add( sprintf( 'An error occurred while executing job "%s": %s', $job, $e->getMessage(), \Psr\Log\LogLevel::ERROR ) ); $status->setUpdateInProgress(false); $exitCode = UPDATE_CRON_EXIT_WITH_ERROR; }; } } catch (\Exception $e) { $status->setUpdateError(); $status->add($e->getMessage(), \Psr\Log\LogLevel::ERROR); $exitCode = UPDATE_CRON_EXIT_WITH_ERROR; } finally { $status->setUpdateInProgress(false); if ($exitCode != UPDATE_CRON_NORMAL_EXIT) { print $notification; } exit($exitCode); }