better wait_seconds
This commit is contained in:
parent
4ad2711b7e
commit
de3f6f077d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue