helm chart - disable FTS volume if not enabled

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2024-02-23 16:19:27 +01:00
parent 622a927a8c
commit ba7bc4818a

View file

@ -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