Add sudo to crontab command (#1773)

This commit is contained in:
Boy132 2025-10-03 00:03:22 +02:00 committed by GitHub
parent 19103b16b8
commit 80993f38a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ class QueueStep
->label(new HtmlString(trans('installer.queue.fields.crontab'))) ->label(new HtmlString(trans('installer.queue.fields.crontab')))
->disabled() ->disabled()
->hintCopy() ->hintCopy()
->default('(crontab -l -u www-data 2>/dev/null; echo "* * * * * php ' . base_path() . '/artisan schedule:run >> /dev/null 2>&1") | crontab -u www-data -') ->default('(sudo crontab -l -u www-data 2>/dev/null; echo "* * * * * php ' . base_path() . '/artisan schedule:run >> /dev/null 2>&1") | sudo crontab -u www-data -')
->hidden(fn () => @file_exists('/.dockerenv')) ->hidden(fn () => @file_exists('/.dockerenv'))
->columnSpanFull(), ->columnSpanFull(),
TextInput::make('queueService') TextInput::make('queueService')