From 59bbb637392a6e701bb90085d963dd1c8b471843 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Sat, 15 Jun 2024 23:20:08 +0200 Subject: [PATCH] Fix queue worker file when using redis (#399) --- .../Commands/Environment/QueueWorkerServiceCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Environment/QueueWorkerServiceCommand.php b/app/Console/Commands/Environment/QueueWorkerServiceCommand.php index 93fe6223f..607f2ae9b 100644 --- a/app/Console/Commands/Environment/QueueWorkerServiceCommand.php +++ b/app/Console/Commands/Environment/QueueWorkerServiceCommand.php @@ -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();