From e68f2b125664b14d6e52e6e832c8c5c7329ae058 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 10 Sep 2022 10:39:39 -0600 Subject: [PATCH] Removed logging --- back/lib/ns_update_add | 8 -------- back/lib/ns_update_send | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/back/lib/ns_update_add b/back/lib/ns_update_add index 8b2cd37..0c856d7 100755 --- a/back/lib/ns_update_add +++ b/back/lib/ns_update_add @@ -12,14 +12,6 @@ CONFIG_FILE='/etc/wgapi/config' [ -f "${CONFIG_FILE}" ] || exit 4 source "${CONFIG_FILE}" -printf "update add ${1}. ${DNS_TTL} A ${2} -update add ${1}. ${DNS_TTL} AAAA ${3} -update add *.${1}. ${DNS_TTL} CNAME ${1}. -send -update add $("${LIB_DIR}/ns_update_rev_ipv4" "${2}") ${DNS_TTL} PTR ${1}. -send -update add $("${LIB_DIR}/ns_update_rev_ipv6" "${3}") ${DNS_TTL} PTR ${1}." - "${LIB_DIR}/ns_update_send" "update add ${1}. ${DNS_TTL} A ${2} update add ${1}. ${DNS_TTL} AAAA ${3} update add *.${1}. ${DNS_TTL} CNAME ${1}. diff --git a/back/lib/ns_update_send b/back/lib/ns_update_send index 9d4656e..e6736af 100755 --- a/back/lib/ns_update_send +++ b/back/lib/ns_update_send @@ -11,4 +11,4 @@ CONFIG_FILE='/etc/wgapi/config' [ -f "${CONFIG_FILE}" ] || exit 4 source "${CONFIG_FILE}" printf 'server %s\n%s\nsend\n' "${DNS_MASTER}" "${1}" \ - | tee -a "${LOGFILE}" | nsupdate -y "${DNS_KEY}" | tee -a "${LOGFILE}" + | nsupdate -y "${DNS_KEY}" | tee -a "${LOGFILE}"