fix: correct path for cron

This commit is contained in:
2025-12-23 19:38:19 +03:00
parent b87797ee67
commit 185f3096e1
3 changed files with 6 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
CRONTAB: | 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: volumes:
- ./src:/web - ./src:/web
- ./scripts:/scripts - ./scripts:/scripts

View File

@@ -79,7 +79,7 @@ class SettingsHandler
$data['forms'] = []; $data['forms'] = [];
// Add CRON system details (read-only) // 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(); $data['cron']['last_run'] = $this->getLastCronRunDate();
$forms = $this->builder->newQuery() $forms = $this->builder->newQuery()

View File

@@ -110,4 +110,8 @@ HTML,
'paths' => [ 'paths' => [
'images_cache' => 'cache/telecart', 'images_cache' => 'cache/telecart',
], ],
'cron' => [
'mode' => 'disabled',
],
]; ];