fix: correct path for cron
This commit is contained in:
@@ -70,7 +70,7 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
CRONTAB: |
|
||||
*/10 * * * * php /module/oc_telegram_shop/upload/cli.php schedule:run > /proc/1/fd/1
|
||||
*/5 * * * * php /web/upload/cli.php schedule:run > /proc/1/fd/1
|
||||
volumes:
|
||||
- ./src:/web
|
||||
- ./scripts:/scripts
|
||||
|
||||
@@ -79,7 +79,7 @@ class SettingsHandler
|
||||
$data['forms'] = [];
|
||||
|
||||
// Add CRON system details (read-only)
|
||||
$data['cron']['cli_path'] = realpath(DIR_SYSTEM . '../cli.php');
|
||||
$data['cron']['cli_path'] = dirname(DIR_SYSTEM) . '/cli.php';
|
||||
$data['cron']['last_run'] = $this->getLastCronRunDate();
|
||||
|
||||
$forms = $this->builder->newQuery()
|
||||
|
||||
@@ -110,4 +110,8 @@ HTML,
|
||||
'paths' => [
|
||||
'images_cache' => 'cache/telecart',
|
||||
],
|
||||
|
||||
'cron' => [
|
||||
'mode' => 'disabled',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user