From ba7bc4818a41bbd20da320f3378204568e4f2db7 Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 23 Feb 2024 16:19:27 +0100 Subject: [PATCH] helm chart - disable FTS volume if not enabled Signed-off-by: Simon L --- nextcloud-aio-helm-chart/update-helm.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index 20cd2f70..d403cc24 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -350,6 +350,12 @@ for variable in "${ENABLED_VARIABLES[@]}"; do find ./ -name "*nextcloud-aio-$name-persistentvolumeclaim.yaml" -exec sed -i "$ a {{- end }}" \{} \; done +# Additional case for FTS volume +# shellcheck disable=SC1083 +find ./ -name "*nextcloud-aio-elasticsearch-persistentvolumeclaim.yaml" -exec sed -i "1i\\{{- if eq .Values.FULLTEXTSEARCH_ENABLED \"yes\" }}" \{} \; +# shellcheck disable=SC1083 +find ./ -name "*nextcloud-aio-elasticsearch-persistentvolumeclaim.yaml" -exec sed -i "$ a {{- end }}" \{} \; + chmod 777 -R ./ # Seems like the dir needs to match the name of the chart