From 557350425e2479de5d91bc5ccc2b12efb813f334 Mon Sep 17 00:00:00 2001 From: Tine Date: Fri, 3 Jan 2025 20:43:33 +0100 Subject: [PATCH] feat(ingress.tjo.cloud): handle any record --- ingress.tjo.cloud/root/usr/local/bin/dyndns | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ingress.tjo.cloud/root/usr/local/bin/dyndns b/ingress.tjo.cloud/root/usr/local/bin/dyndns index b84fe41..d56090e 100755 --- a/ingress.tjo.cloud/root/usr/local/bin/dyndns +++ b/ingress.tjo.cloud/root/usr/local/bin/dyndns @@ -99,8 +99,8 @@ configure_many() { ip=$3 type=$4 - record_id=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content = \"$ip\") | .id") - record_data=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content = \"$ip\") | .content") + record_id=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content == \"$ip\") | .id") + record_data=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content == \"$ip\") | .content") # re-enable glob expansion set +f