More fixes...

This commit is contained in:
Root User 2026-03-03 14:49:16 +01:00
parent 07a5510ad4
commit fcc70d789a
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -706,7 +706,7 @@ in {
########################################### ###########################################
## Get existing IP ## Get existing IP
########################################### ###########################################
old_ip=$(echo "$record" | sed -E 's/.*"content":"(([0-9]{1,3}\\.){3}[0-9]{1,3})".*/\\1/') old_ip=$(echo "$record" | ${pkgs.jq}/bin/jq -r '.result[0].content')
# Compare if they're the same # Compare if they're the same
if [[ $CURRENT_IP == $old_ip ]]; then if [[ $CURRENT_IP == $old_ip ]]; then
${pkgs.util-linux}/bin/logger "DDNS Updater: IP ($CURRENT_IP) for ''${record_name} has not changed." ${pkgs.util-linux}/bin/logger "DDNS Updater: IP ($CURRENT_IP) for ''${record_name} has not changed."
@ -719,7 +719,7 @@ in {
########################################### ###########################################
## Set the record identifier from result ## Set the record identifier from result
########################################### ###########################################
record_identifier=$(echo "$record" | sed -E 's/.*"id":"([A-Za-z0-9_]+)".*/\\1/') record_identifier=$(echo "$record" | ${pkgs.jq}/bin/jq -r '.result[0].id')
# Output for debugging # Output for debugging
${pkgs.util-linux}/bin/logger -s "DDNS Updater: Record identifier for ''${record_name} is ''${record_identifier}" ${pkgs.util-linux}/bin/logger -s "DDNS Updater: Record identifier for ''${record_name} is ''${record_identifier}"