From 3417b60585cbc1b803c02f9613fd349062fd4b66 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Tue, 4 Nov 2025 13:35:12 +0100 Subject: [PATCH] only run self-hosting update and telemetry scheduler when app_key is set --- app/Console/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 9fe9075f..5d0487da 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -22,7 +22,7 @@ class Kernel extends ConsoleKernel ->when(fn (): bool => config('scheduling.tasks.auth_send_mails_expiring_api_tokens')) ->everyTenMinutes(); - if (config('scheduling.tasks.self_hosting_check_for_update') || config('scheduling.tasks.self_hosting_telemetry')) { + if (config('app.key') && (config('scheduling.tasks.self_hosting_check_for_update') || config('scheduling.tasks.self_hosting_telemetry'))) { // Convert string to a stable integer for seeding /** @var int $seed Take the first 8 hex chars → 32-bit int */ $seed = hexdec(substr(hash('md5', config('app.key')), 0, 8));