idhub target deployments persistent by default
except autotest instance
This commit is contained in:
parent
bfd6a92d6c
commit
5ddc747d31
|
@ -28,9 +28,6 @@ common_start() {
|
||||||
# some targets might use idhub1 and/or idhub2
|
# some targets might use idhub1 and/or idhub2
|
||||||
idhub1="${idhub1:-idhub1__${target}}"
|
idhub1="${idhub1:-idhub1__${target}}"
|
||||||
idhub2="${idhub2:-idhub2__${target}}"
|
idhub2="${idhub2:-idhub2__${target}}"
|
||||||
|
|
||||||
# force recreate
|
|
||||||
rm -rf "./${idhub1}" "./${idhub2}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
common_end() {
|
common_end() {
|
||||||
|
|
|
@ -19,6 +19,9 @@ main() {
|
||||||
|
|
||||||
common_start
|
common_start
|
||||||
|
|
||||||
|
# no data persistence: cleanup previous possible data
|
||||||
|
rm -rf "./${idhub1}" "./${idhub2}"
|
||||||
|
|
||||||
# detect if is new
|
# detect if is new
|
||||||
if [ ! -f "./${idhub1}" ]; then
|
if [ ! -f "./${idhub1}" ]; then
|
||||||
echo 'Detected new deployment, recreating idhub git repo'
|
echo 'Detected new deployment, recreating idhub git repo'
|
||||||
|
|
Reference in a new issue