From 0e6ab847a3526eda37ccbd378eba5492339dc49d Mon Sep 17 00:00:00 2001 From: Tine Date: Fri, 3 Jan 2025 19:54:15 +0100 Subject: [PATCH] feat: api --- ingress.tjo.cloud/root/usr/local/bin/dyndns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingress.tjo.cloud/root/usr/local/bin/dyndns b/ingress.tjo.cloud/root/usr/local/bin/dyndns index 15dc310..30cb876 100755 --- a/ingress.tjo.cloud/root/usr/local/bin/dyndns +++ b/ingress.tjo.cloud/root/usr/local/bin/dyndns @@ -43,7 +43,7 @@ configure_record() { for sub in ${NAME//;/ }; do record_id=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .content == \"$sub\") | .id") - record_data=$(echo "$domain_records" | jq -r ".data[] | select(.type == \"$type\" and .content == \"$sub\") | .data") + record_data=$(echo "$domain_records" | jq -r ".data[] | select(.type == \"$type\" and .content == \"$sub\") | .content") if [ "$(echo "$record_id" | wc -l)" -ge 2 ]; then if [[ "${remove_duplicates}" == "true" ]]; then