From afc0b0fbd89f97732e197e7dd34cad9355fc6aea Mon Sep 17 00:00:00 2001 From: Claudio Beatrice Date: Thu, 29 Jun 2023 16:54:45 +0200 Subject: [PATCH] fix: update v1.25.2 to v1.25.3 upgrade guide to support both bsd and gnu sed --- docs/upgrades/v1.25.2-to-v1.25.3.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/upgrades/v1.25.2-to-v1.25.3.md b/docs/upgrades/v1.25.2-to-v1.25.3.md index 232ffef7..eded0b8e 100644 --- a/docs/upgrades/v1.25.2-to-v1.25.3.md +++ b/docs/upgrades/v1.25.2-to-v1.25.3.md @@ -46,7 +46,8 @@ fi cp -R "${HOME}/.furyctl/${CLUSTERNAME}" "${HOME}/.furyctl/${CLUSTERNAME}.${NOW}" echo ">>>> Update the furyconfig.yaml file setting the new fury version" -sed -i 's/distributionVersion\:\ v1\.25\.2/distributionVersion\:\ v1\.25\.3/g' "${FURYCONFIG}" +sed 's/distributionVersion\:\ v1\.25\.2/distributionVersion\:\ v1\.25\.3/g' "${FURYCONFIG}" > "${FURYCONFIG}.tmp" +mv "${FURYCONFIG}.tmp" "${FURYCONFIG}" echo ">>>> Delete terraform folders" find "${HOME}/.furyctl/${CLUSTERNAME}" -name .terraform -type d | xargs -I {} rm -rf {}