From de3f6f077df4c3b6b73f2f44feabc5dd7e888654 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 15 Mar 2024 09:03:02 +0100 Subject: [PATCH] better wait_seconds --- build__all.sh | 1 + build__common.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build__all.sh b/build__all.sh index dd98497..71b5990 100755 --- a/build__all.sh +++ b/build__all.sh @@ -12,6 +12,7 @@ main() { export action="${action:-deploy}" export deployment="${deployment:-prod}" + export wait_seconds="${wait_seconds:-20}" ./build__pilot-xo9b.sh ./build__pilot-setem.sh ./build__pilot-lafede.sh diff --git a/build__common.sh b/build__common.sh index 9d5af7e..0dfc404 100644 --- a/build__common.sh +++ b/build__common.sh @@ -72,7 +72,7 @@ common_end() { if [ "${action:-}" = "deploy" ]; then docker compose -p ${target} -f ${dc_file} up ${detach:-} - wait_seconds="${wait_seconds:-20}" + wait_seconds="${wait_seconds:0}" echo "Give ${wait_seconds} seconds to this new deployment to be setted up" sleep "${wait_seconds}" fi