Adds all lengths to one sum

This commit is contained in:
Daniel Wydler 2024-12-06 11:58:57 +01:00
parent 172bd870c6
commit 13837b959b
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ services:
image: ldez/traefik-certs-dumper:v2.8.3 image: ldez/traefik-certs-dumper:v2.8.3
entrypoint: sh -c ' entrypoint: sh -c '
while ! [ -e /data/acme.json ] 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 sleep 1
; done ; done
&& traefik-certs-dumper file --version v2 --watch && traefik-certs-dumper file --version v2 --watch

View File

@ -145,7 +145,7 @@ services:
container_name: traefik-certs-dumper container_name: traefik-certs-dumper
entrypoint: sh -c ' entrypoint: sh -c '
while ! [ -e /data/acme.json ] 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 sleep 1
; done ; done
&& traefik-certs-dumper file --version v2 --watch && traefik-certs-dumper file --version v2 --watch