From 74cb8eeda689f8496f89c1a2f99b81e047a2a87e Mon Sep 17 00:00:00 2001
From: Pierre Ozoux <pierre@ozoux.net>
Date: Wed, 2 Feb 2022 17:05:47 +0000
Subject: [PATCH] Fixes initContiners.

---
 nextcloud/manifests/app.yml | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/nextcloud/manifests/app.yml b/nextcloud/manifests/app.yml
index 6428d83..851e52d 100644
--- a/nextcloud/manifests/app.yml
+++ b/nextcloud/manifests/app.yml
@@ -130,17 +130,13 @@ spec:
                 operator: In
                 values:
                 - app
-      initContainers:
-      - name: patch-multioffice
-        image: libresh/nextcloud:${NC_IMAGE_TAG}
-        command:
-        - /runtime/patches/apply.sh
-        envFrom:
-        - secretRef:
-            name: ${FQDN}-app
       containers:
-      - command:
-        - php-fpm
+      - command: ["/bin/sh"]
+        args:
+        - -c
+        - >-
+          /runtime/patches/apply.sh &&
+          php-fpm
         env:
 #cat ./version.php | grep 'array(' | cut -d\( -f2 | cut -d\) -f1 | sed 's/,/\./g'
         - name: VERSION
-- 
GitLab