Fix queue worker file when using redis (#399)

This commit is contained in:
Boy132 2024-06-15 23:20:08 +02:00 committed by GitHub
parent f4c3c89c17
commit 59bbb63739
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ class QueueWorkerServiceCommand extends Command
$fileExists = file_exists($path);
if ($fileExists && !$this->option('overwrite') && !$this->confirm('The service file already exists. Do you want to overwrite it?')) {
$this->line('Creation of queue worker service file aborted because serive file already exists.');
$this->line('Creation of queue worker service file aborted because service file already exists.');
return;
}
@ -32,7 +32,8 @@ class QueueWorkerServiceCommand extends Command
$user = $this->option('user') ?? $this->ask('Webserver User', 'www-data');
$group = $this->option('group') ?? $this->ask('Webserver Group', 'www-data');
$afterRedis = $this->option('use-redis') ? '\nAfter=redis-server.service' : '';
$afterRedis = $this->option('use-redis') ? '
After=redis-server.service' : '';
$basePath = base_path();