From 037218b8a8543d0bbc9c1ddd1a7c0695c0b33db7 Mon Sep 17 00:00:00 2001
From: xeruf <27jf@pm.me>
Date: Thu, 16 Feb 2023 18:47:39 +0000
Subject: [PATCH] nextcloud: add custom postStartCommand

---
 basic/apps/do-test/vikunja-release.yaml         |  2 +-
 .../overrides/stackspin-nextcloud-override.yaml | 17 +++++++++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/basic/apps/do-test/vikunja-release.yaml b/basic/apps/do-test/vikunja-release.yaml
index 9639e67..49eaf8b 100644
--- a/basic/apps/do-test/vikunja-release.yaml
+++ b/basic/apps/do-test/vikunja-release.yaml
@@ -9,7 +9,7 @@ spec:
     spec:
       # https://github.com/truecharts/charts/blob/master/charts/stable/vikunja/Chart.yaml
       chart: vikunja
-      version: 6.0.1
+      version: 6.0.22
       sourceRef:
         kind: HelmRepository
         name: truecharts
diff --git a/basic/overrides/stackspin-nextcloud-override.yaml b/basic/overrides/stackspin-nextcloud-override.yaml
index 872d251..c9b0019 100644
--- a/basic/overrides/stackspin-nextcloud-override.yaml
+++ b/basic/overrides/stackspin-nextcloud-override.yaml
@@ -21,6 +21,19 @@ data:
               'default_phone_region' => 'DE',
               'default_locale' => 'en-gb',
             );
+            #extraVolumes:
+            #  - name: nextcloud-onlyoffice-config
+            #    configMap:
+            #      name: nextcloud-onlyoffice-config-and-scripts
+            #extraVolumeMounts:
+            #  - name: nextcloud-onlyoffice-config
+            #    mountPath: /var/local
+
+      lifecycle:
+        postStartCommand:
+          - '/bin/bash'
+          - '-c'
+          - '"echo hiho && /bin/bash /var/local/setup-apps.sh"'
     apps:
       # Basics
       - name: bruteforcesettings
@@ -60,8 +73,8 @@ data:
       - name: extract
         enabled: false
       # Collaborative apps
-      - name: files_markdown
-        enabled: false
+      #- name: files_markdown
+      #  enabled: false
         #- name: files_texteditor
         #  enabled: true
       - name: notes
-- 
GitLab