Skip to content

Commit 3417b60

Browse files
committed
only run self-hosting update and telemetry scheduler when app_key is set
1 parent 0f21fab commit 3417b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected function schedule(Schedule $schedule): void
2222
->when(fn (): bool => config('scheduling.tasks.auth_send_mails_expiring_api_tokens'))
2323
->everyTenMinutes();
2424

25-
if (config('scheduling.tasks.self_hosting_check_for_update') || config('scheduling.tasks.self_hosting_telemetry')) {
25+
if (config('app.key') && (config('scheduling.tasks.self_hosting_check_for_update') || config('scheduling.tasks.self_hosting_telemetry'))) {
2626
// Convert string to a stable integer for seeding
2727
/** @var int $seed Take the first 8 hex chars → 32-bit int */
2828
$seed = hexdec(substr(hash('md5', config('app.key')), 0, 8));

0 commit comments

Comments
 (0)