From 4d06b5c305dd102ae29a4180ae35d1a1c3d016f7 Mon Sep 17 00:00:00 2001 From: Jade Ops Date: Thu, 9 Oct 2025 17:08:10 +0530 Subject: [PATCH] autodetect cron script path --- app/Views/settings/index.php | 2 +- public/index.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Views/settings/index.php b/app/Views/settings/index.php index 1d83b62..5d9c05f 100644 --- a/app/Views/settings/index.php +++ b/app/Views/settings/index.php @@ -403,7 +403,7 @@ foreach ($notificationPresets as $key => $preset) { Recommended Crontab Entry
- 0 */ * * * php /path/to/cron/check_domains.php + 0 */ * * * php

Update the path to match your server installation

diff --git a/public/index.php b/public/index.php index 8901315..bf74ea5 100644 --- a/public/index.php +++ b/public/index.php @@ -6,6 +6,8 @@ use Core\Application; use Core\Router; use Dotenv\Dotenv; +define('PATH_ROOT', __DIR__ . '/../'); + // Load environment variables $dotenv = Dotenv::createImmutable(__DIR__ . '/..'); $dotenv->load();