idhub target deployments persistent by default

except autotest instance
This commit is contained in:
pedro 2024-02-05 19:37:35 +01:00
parent bfd6a92d6c
commit 5ddc747d31
2 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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'