mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-06 13:56:45 +08:00
fix a detail with the helm chart
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
1750e29084
commit
632fb6b35d
1 changed files with 2 additions and 2 deletions
|
@ -200,12 +200,12 @@ for variable in "${VOLUME_VARIABLE[@]}"; do
|
||||||
done
|
done
|
||||||
mv /tmp/sample.conf ../helm-chart/values.yaml
|
mv /tmp/sample.conf ../helm-chart/values.yaml
|
||||||
|
|
||||||
ENABLED_VARIABLES="$(grep -oP '^[A-Z]+_ENABLED' ../helm-chart/values.yaml)"
|
ENABLED_VARIABLES="$(grep -oP '^[A-Z_]+_ENABLED' ../helm-chart/values.yaml)"
|
||||||
mapfile -t ENABLED_VARIABLES <<< "$ENABLED_VARIABLES"
|
mapfile -t ENABLED_VARIABLES <<< "$ENABLED_VARIABLES"
|
||||||
|
|
||||||
cd ../helm-chart/
|
cd ../helm-chart/
|
||||||
for variable in "${ENABLED_VARIABLES[@]}"; do
|
for variable in "${ENABLED_VARIABLES[@]}"; do
|
||||||
name="$(echo "$variable" | sed 's|_ENABLED||g' | tr '[:upper:]' '[:lower:]')"
|
name="$(echo "$variable" | sed 's|_ENABLED||g;s|_|-|g' | tr '[:upper:]' '[:lower:]')"
|
||||||
# shellcheck disable=SC1083
|
# shellcheck disable=SC1083
|
||||||
find ./ -name "*nextcloud-aio-$name-deployment.yaml" -exec sed -i "1i\\{{- if eq .Values.$variable \"yes\" }}" \{} \;
|
find ./ -name "*nextcloud-aio-$name-deployment.yaml" -exec sed -i "1i\\{{- if eq .Values.$variable \"yes\" }}" \{} \;
|
||||||
# shellcheck disable=SC1083
|
# shellcheck disable=SC1083
|
||||||
|
|
Loading…
Reference in a new issue