Added Warnings in case DO records to not exist-fix1
This commit is contained in:
parent
f92b4be6d8
commit
d537ffa170
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ if agent_update_dns_do_domain=$(_update_dns_do_get_domain); then
|
||||||
-d '{"data":"'$DIP_CUR_IP'"}' \
|
-d '{"data":"'$DIP_CUR_IP'"}' \
|
||||||
"https://api.digitalocean.com/v2/domains/$agent_update_dns_do_domain/records/$record_id4" > /dev/null;
|
"https://api.digitalocean.com/v2/domains/$agent_update_dns_do_domain/records/$record_id4" > /dev/null;
|
||||||
else
|
else
|
||||||
logerr "WARN: No A record exists for $agent_update_dns_do_domain"
|
logerr "WARN: No A record exists for $DIP_RECORD"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ if agent_update_dns_do_domain=$(_update_dns_do_get_domain); then
|
||||||
-d '{"data":"'$DIP_CUR_IP'"}' \
|
-d '{"data":"'$DIP_CUR_IP'"}' \
|
||||||
"https://api.digitalocean.com/v2/domains/$agent_update_dns_do_domain/records/$record_id6" > /dev/null;
|
"https://api.digitalocean.com/v2/domains/$agent_update_dns_do_domain/records/$record_id6" > /dev/null;
|
||||||
else
|
else
|
||||||
logerr "WARN: No AAAA record exists for $agent_update_dns_do_domain"
|
logerr "WARN: No AAAA record exists for $DIP_RECORD"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue