diff --git a/docs/docker-compose-traefik-v2.yml b/docs/docker-compose-traefik-v2.yml index cba4808..97fcf4a 100644 --- a/docs/docker-compose-traefik-v2.yml +++ b/docs/docker-compose-traefik-v2.yml @@ -26,7 +26,7 @@ services: image: ldez/traefik-certs-dumper:v2.8.3 entrypoint: sh -c ' while ! [ -e /data/acme.json ] - || ! [ `jq ".[] | .Certificates | length" /data/acme.json` != 0 ]; do + || ! [ `jq ".[] | .Certificates | length" /data/acme.json | jq -s "add" ` != 0 ]; do sleep 1 ; done && traefik-certs-dumper file --version v2 --watch diff --git a/readme.md b/readme.md index fee680e..86259ab 100644 --- a/readme.md +++ b/readme.md @@ -145,7 +145,7 @@ services: container_name: traefik-certs-dumper entrypoint: sh -c ' while ! [ -e /data/acme.json ] - || ! [ `jq ".[] | .Certificates | length" /data/acme.json` != 0 ]; do + || ! [ `jq ".[] | .Certificates | length" /data/acme.json | jq -s "add" ` != 0 ]; do sleep 1 ; done && traefik-certs-dumper file --version v2 --watch