Added Warnings in case DO records to not exist-fix1

This commit is contained in:
Eric Renfro 2021-01-31 13:43:53 -05:00
parent f92b4be6d8
commit d537ffa170
Signed by untrusted user who does not match committer: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -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