From b95110ad798411d2b993efcb3b873116c6424da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20P=C3=B6hner?= <10630407+groundhog2k@users.noreply.github.com> Date: Wed, 4 Jan 2023 18:54:16 +0100 Subject: [PATCH] Copy custom scripts in mongodb-init fail (#1196) --- charts/mongodb/Chart.yaml | 4 ++-- charts/mongodb/RELEASENOTES.md | 1 + charts/mongodb/templates/scripts.yaml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/mongodb/Chart.yaml b/charts/mongodb/Chart.yaml index e81db3b3..1286ceae 100644 --- a/charts/mongodb/Chart.yaml +++ b/charts/mongodb/Chart.yaml @@ -7,6 +7,6 @@ type: application maintainers: - name: groundhog2k -version: 0.4.15 +version: 0.2.25 -appVersion: "5.0.14" +appVersion: "4.2.23" diff --git a/charts/mongodb/RELEASENOTES.md b/charts/mongodb/RELEASENOTES.md index da36e857..7e97e818 100644 --- a/charts/mongodb/RELEASENOTES.md +++ b/charts/mongodb/RELEASENOTES.md @@ -14,6 +14,7 @@ | 0.2.22 | 4.2.23 | Upgraded to MongoDB 4.2.23 and implemented ReplicaSet deployment support | | 0.2.23 | 4.2.23 | Fixed pod initialization bug when deployed without replicaset | | 0.2.24 | 4.2.23 | Implemented support for more independent configuration of arbiters and hidden secondaries | +| 0.2.25 | 4.2.23 | Fixed bug: Copy of custom scripts failed - thx @huber-and | | 0.3.8 | 4.4.11 | Implemented startupProbe support | | 0.3.9 | 4.4.12 | Upgraded to MongoDB 4.4.12 | | 0.3.10 | 4.4.13 | Implemented support for extra secrets and advanced configuration capabilites | diff --git a/charts/mongodb/templates/scripts.yaml b/charts/mongodb/templates/scripts.yaml index 1b37f577..ebfc98f8 100644 --- a/charts/mongodb/templates/scripts.yaml +++ b/charts/mongodb/templates/scripts.yaml @@ -411,11 +411,11 @@ data: cp /scripts/0*-init-*.sh /initscripts if [ -d /extrascripts ]; then echo "Copy extra scripts" - cp /extrascripts/* /scripts + cp /extrascripts/* /initscripts fi if [ -d /customscripts ]; then echo "Copy custom scripts" - cp /customscripts/* /scripts + cp /customscripts/* /initscripts fi fi # Copy extra initialization scripts for ReplicaSet cluster -- GitLab