From 55ff658527208b2320a5e69d77f75fbadb6c2424 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 31 Oct 2023 12:33:05 -0400 Subject: [PATCH] Fixed bug --- src/agents.d/update-dns-namecheap | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/agents.d/update-dns-namecheap b/src/agents.d/update-dns-namecheap index 1a28e19..4d7e919 100755 --- a/src/agents.d/update-dns-namecheap +++ b/src/agents.d/update-dns-namecheap @@ -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" fi -if [[ -z "$agent_update_dns_r53_id" ]]; then - logerr "ERROR: Need 'agent_update_dns_r53_id' to be defined to your Route53 Domain ID" - exit 99 -fi +#if [[ -z "$agent_update_dns_r53_id" ]]; then +# logerr "ERROR: Need 'agent_update_dns_r53_id' to be defined to your Route53 Domain ID" +# exit 99 +#fi #if [[ -d "${DIP_BASE_DIR}/aws" ]]; then # if [[ ! -r "${DIP_BASE_DIR}/aws/config" ]]; then @@ -56,7 +56,7 @@ _get_host_and_domain() { # Main -_get_host_and_domain "$DIP_RECORD" || exit 97 +_get_host_and_domain "$DIP_RECORD" || exit 99 if valid_ipv4 "$DIP_CUR_IP"; then log "Updating Namecheap DNS IPv4 Record for ${hostname}.${domain}"