From 63962abc980e35ad47f9cc1a1b38dfb03bb01afb Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Fri, 20 May 2022 15:16:19 +0200
Subject: [PATCH] removed postStart command

---
 chart/templates/deployment.yaml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml
index 40d359139..bdcc81a9c 100644
--- a/chart/templates/deployment.yaml
+++ b/chart/templates/deployment.yaml
@@ -106,7 +106,8 @@ spec:
           securityContext:
             {{- toYaml .Values.securityContext | nindent 12 }}
           image: "{{ template "fpm_image" . }}"
-          command: ["/usr/local/bin/php", "artisan", "schedule:work"]
+          command: ["/bin/bash", "-c"]
+          args: ["/usr/local/bin/php artisan schedule:run && /usr/local/bin/php artisan schedule:work"]
           imagePullPolicy: {{ .Values.image.fpm.pullPolicy }}
           env:
           - name: APP_ENV
@@ -143,9 +144,6 @@ spec:
               memory: 100M
             limits:
           lifecycle:
-            postStart:
-              exec:
-                command: ["/usr/local/bin/php", "artisan" ,"schedule:run"]
             preStop:
               exec:
                 command: ["/usr/local/bin/php", "artisan" ,"schedule:run"]
-- 
GitLab