From 8ca76b5d920732366d11902fa38a96698a6f34b7 Mon Sep 17 00:00:00 2001 From: Tine Date: Mon, 6 Jan 2025 18:52:27 +0100 Subject: [PATCH] feat(ingress.tjo.cloud): debug --- ingress.tjo.cloud/root/usr/local/bin/dyndns | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ingress.tjo.cloud/root/usr/local/bin/dyndns b/ingress.tjo.cloud/root/usr/local/bin/dyndns index 9cf1fb2..335b3b7 100755 --- a/ingress.tjo.cloud/root/usr/local/bin/dyndns +++ b/ingress.tjo.cloud/root/usr/local/bin/dyndns @@ -14,6 +14,10 @@ services=( "ifconfig.io" ) +debug() { + echo "DEBUG: $1" +} + info() { echo "INFO: $1" } @@ -158,6 +162,7 @@ healthcheck() { while (true); do domain_records=$(dnsimple_list_record) + debug "domain_records=$domain_records" for service in "${services[@]}"; do info "service=$service Discovering public IP address..."