diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/ingress/usr_local_bin_hetzner_ddns.sh.j2 | 4 |
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 ;; |
