fix: correct path for cron
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -110,4 +110,8 @@ HTML,
|
|||||||
'paths' => [
|
'paths' => [
|
||||||
'images_cache' => 'cache/telecart',
|
'images_cache' => 'cache/telecart',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'cron' => [
|
||||||
|
'mode' => 'disabled',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user