aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-12-18 16:50:37 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-12-18 16:50:37 +0200
commit0fcfd8f3636695e9973504792e9102e01571a6a7 (patch)
treeaa47975e2f7aef2a2e438e5b9988af5d800fa9e6 /templates
parentd2d64fed66dfd6b4682bea118323315879bc30a5 (diff)
Improvements
Diffstat (limited to 'templates')
-rw-r--r--templates/ingress/usr_local_bin_hetzner_ddns.sh.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/ingress/usr_local_bin_hetzner_ddns.sh.j2 b/templates/ingress/usr_local_bin_hetzner_ddns.sh.j2
index eec12d7..ee3573e 100644
--- a/templates/ingress/usr_local_bin_hetzner_ddns.sh.j2
+++ b/templates/ingress/usr_local_bin_hetzner_ddns.sh.j2
@@ -101,11 +101,11 @@ HTTP_CODE=$(
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${API_TOKEN}" \
--data "${BODY}" \
- "${API_BASE}/zones/${ZONE}/rrsets/${RR_ID}/actions/update_records"
+ "${API_BASE}/zones/${ZONE}/rrsets/${RR_ID}/actions/set_records"
)
case "${HTTP_CODE}" in
- 200)
+ 20*)
info "Updated zone ${ZONE} RRSet ${RR_ID} -> ${IFACE_IP}"
exit 0
;;