Skip to content

Commit

Permalink
Merge pull request #4270 from nextcloud/enh/noid/disable-fts-volume
Browse files Browse the repository at this point in the history
helm chart - disable FTS volume if not enabled
  • Loading branch information
szaimen authored Feb 23, 2024
2 parents 622a927 + ba7bc48 commit fbf32eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nextcloud-aio-helm-chart/update-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbf32eb

Please sign in to comment.