From 5ab8baadf1542e19bc88a84e98f25cc85286416d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 24 Nov 2025 12:34:18 +0100 Subject: [PATCH] Rename config source file if '/tempenv' is empty Rename the config source file to include '.old' extension when '/tempenv' is empty. --- .templates/01-config_yaml.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index ea8f31830..98ecf866a 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -97,6 +97,7 @@ sed -i '/^$/d' /tempenv # Exit if empty if [ ! -s /tempenv ]; then rm /tempenv + mv "$CONFIGSOURCE" "$CONFIGSOURCE".old exit 0 fi