This commit is contained in:
2023-12-28 11:04:06 -06:00
parent b621768a12
commit b62963b04f
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERS='5.1.41-12272023'
VERS='5.1.42-12282023'
NM_BETA=false
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck '

View File

@@ -51,7 +51,7 @@ NEWCERT(){
echo
fi
if [ "${NM_PDNS_USER}" != "" ] && [ "${NM_PDNS_PASS}" != "" ] && [ "${SOMETHING}" == "SOMETHING" ]; then
if [ "${NM_PDNS_APIKEY}" != "" ] && [ "${NM_PDNS_RP_HOSTNAME}" != "" ]; then
echo -en "${idsCL[LightCyan]}Verifying WAN DNS record ... "
CERTDOMAIN=$(echo ${MAIN_CERT} |awk -F. '{$1="";OFS="." ; print $0}' | sed 's/^.//' | sed 's/ /./g')
if [ "$(curl -sH "Content-Type: application/json" -H "X-API-Key: ${NM_PDNS_APIKEY}" https://${NM_PDNS_WANDNS}/api/v1/servers/localhost/zones/${CERTDOMAIN} | jq | grep "${MAIN_CERT}")" != "" ]; then