From cbb252ff3232b4aa131d52a7b57f0c5789fff877 Mon Sep 17 00:00:00 2001 From: "D. Domig" Date: Sat, 14 Sep 2019 05:21:15 +0200 Subject: [PATCH] Allow checked to be greater than expected --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 53cb603..e294182 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -34,7 +34,7 @@ check_services () { check=$(curl -sg --unix-socket /var/run/docker.sock http://$CHK_DOCKER_API_VERSION/tasks?filters={%22service%22:[%22$service%22]} | jq '.[]? | select((.Status.State|index("running")>=0))? | .ID?' | wc -l) state="0" - if [ $check = $expected ]; then + if [ $check -ge $expected ]; then state="1" fi