Added debugging for add response

master
Keith Irwin 2022-09-10 13:43:38 -06:00
parent 59dfe5783e
commit d9676bef0a
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 3 additions and 0 deletions

View File

@ -24,4 +24,5 @@ elif [ "${2}" == '' ]
fi
# Send response
printf "${status}${content_type}\n${body}\n" >>"${LOGFILE}"
printf "${status}${content_type}\n${body}\n"

View File

@ -125,7 +125,9 @@ wg_config="[Interface] # ${hostname}.${username}.${TLD}\nPrivateKey=${privkey}\n
# Do it before updating nameserver and certs because
# if wireguard worked, there's no going back. The admin
# can clean up missing records and certs after checking the logs
set -x
<<<"${wg_config}" "${LIB_DIR}/http_res"
set +x
# Update nameserver
if "${LIB_DIR}/ns_update_add" "${domain}" "${ipv4}" "${ipv6}"