Fixed bug
This commit is contained in:
parent
5ff2206d45
commit
55ff658527
1 changed files with 5 additions and 5 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue