mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
More fixes...
This commit is contained in:
parent
07a5510ad4
commit
fcc70d789a
1 changed files with 2 additions and 2 deletions
|
|
@ -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}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue