From 5ddc747d31ccab53b0639cfb58df741d06709755 Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 5 Feb 2024 19:37:35 +0100 Subject: [PATCH] idhub target deployments persistent by default except autotest instance --- build__common.sh | 3 --- build__instance-autotest.sh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build__common.sh b/build__common.sh index f256aa9..0f8625a 100644 --- a/build__common.sh +++ b/build__common.sh @@ -28,9 +28,6 @@ common_start() { # some targets might use idhub1 and/or idhub2 idhub1="${idhub1:-idhub1__${target}}" idhub2="${idhub2:-idhub2__${target}}" - - # force recreate - rm -rf "./${idhub1}" "./${idhub2}" } common_end() { diff --git a/build__instance-autotest.sh b/build__instance-autotest.sh index 1f3b558..6e31567 100755 --- a/build__instance-autotest.sh +++ b/build__instance-autotest.sh @@ -19,6 +19,9 @@ main() { common_start + # no data persistence: cleanup previous possible data + rm -rf "./${idhub1}" "./${idhub2}" + # detect if is new if [ ! -f "./${idhub1}" ]; then echo 'Detected new deployment, recreating idhub git repo'