mirror of
https://github.com/pelican-dev/panel.git
synced 2025-10-29 23:26:52 +01:00
Add sudo to crontab command (#1773)
This commit is contained in:
parent
19103b16b8
commit
80993f38a9
@ -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')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user