Added debugging for add response
parent
59dfe5783e
commit
d9676bef0a
|
@ -24,4 +24,5 @@ elif [ "${2}" == '' ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Send response
|
# Send response
|
||||||
|
printf "${status}${content_type}\n${body}\n" >>"${LOGFILE}"
|
||||||
printf "${status}${content_type}\n${body}\n"
|
printf "${status}${content_type}\n${body}\n"
|
|
@ -125,7 +125,9 @@ wg_config="[Interface] # ${hostname}.${username}.${TLD}\nPrivateKey=${privkey}\n
|
||||||
# Do it before updating nameserver and certs because
|
# Do it before updating nameserver and certs because
|
||||||
# if wireguard worked, there's no going back. The admin
|
# if wireguard worked, there's no going back. The admin
|
||||||
# can clean up missing records and certs after checking the logs
|
# can clean up missing records and certs after checking the logs
|
||||||
|
set -x
|
||||||
<<<"${wg_config}" "${LIB_DIR}/http_res"
|
<<<"${wg_config}" "${LIB_DIR}/http_res"
|
||||||
|
set +x
|
||||||
|
|
||||||
# Update nameserver
|
# Update nameserver
|
||||||
if "${LIB_DIR}/ns_update_add" "${domain}" "${ipv4}" "${ipv6}"
|
if "${LIB_DIR}/ns_update_add" "${domain}" "${ipv4}" "${ipv6}"
|
||||||
|
|
Loading…
Reference in New Issue