Fixed bug

This commit is contained in:
Eric Renfro 2023-10-31 12:33:05 -04:00
parent 5ff2206d45
commit 55ff658527
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -12,10 +12,10 @@ if [[ -r "${DIP_BASE_DIR}/conf.d/${DIP_AGENT_EXEC}.conf" ]]; then
source "${DIP_BASE_DIR}/conf.d/${DIP_AGENT_EXEC}.conf" source "${DIP_BASE_DIR}/conf.d/${DIP_AGENT_EXEC}.conf"
fi fi
if [[ -z "$agent_update_dns_r53_id" ]]; then #if [[ -z "$agent_update_dns_r53_id" ]]; then
logerr "ERROR: Need 'agent_update_dns_r53_id' to be defined to your Route53 Domain ID" # logerr "ERROR: Need 'agent_update_dns_r53_id' to be defined to your Route53 Domain ID"
exit 99 # exit 99
fi #fi
#if [[ -d "${DIP_BASE_DIR}/aws" ]]; then #if [[ -d "${DIP_BASE_DIR}/aws" ]]; then
# if [[ ! -r "${DIP_BASE_DIR}/aws/config" ]]; then # if [[ ! -r "${DIP_BASE_DIR}/aws/config" ]]; then
@ -56,7 +56,7 @@ _get_host_and_domain() {
# Main # Main
_get_host_and_domain "$DIP_RECORD" || exit 97 _get_host_and_domain "$DIP_RECORD" || exit 99
if valid_ipv4 "$DIP_CUR_IP"; then if valid_ipv4 "$DIP_CUR_IP"; then
log "Updating Namecheap DNS IPv4 Record for ${hostname}.${domain}" log "Updating Namecheap DNS IPv4 Record for ${hostname}.${domain}"