Consider ZEROTIER_JOIN_NETWORKS in healthcheck

This commit is contained in:
Stavros Kois 2023-04-27 20:53:11 +03:00 committed by GitHub
parent 411e54023a
commit 402e13fb59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ log_params "Writing healthcheck for networks:" $@
cat >/healthcheck.sh <<EOF cat >/healthcheck.sh <<EOF
#!/bin/bash #!/bin/bash
for i in $@ for i in $@ $ZEROTIER_JOIN_NETWORKS
do do
[ "\$(zerotier-cli get \$i status)" = "OK" ] || exit 1 [ "\$(zerotier-cli get \$i status)" = "OK" ] || exit 1
done done