This commit is contained in:
2023-12-27 23:07:33 -06:00
parent 6ced315ba5
commit 7a03b0b461
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='5.1.40a-12272023'
NM_BETA=true
VERS='5.1.41-12272023'
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 '
CERT_DAEMON='/snap/bin/certbot'

View File

@@ -50,6 +50,14 @@ NEWCERT(){
echo -e "${idsCL[LightYellow]}${idsST[Bold]}### REQUESTING CERT IN TEST MODE ###${idsST[Reset]}${idsCL[Default]}"
echo
fi
if [ "${NM_PDNS_USER}" != "" ] && [ "${NM_PDNS_PASS}" != "" ] && [ "${SOMETHING}" == "SOMETHING" ]; then
echo -en "${idsCL[LightCyan]}Verifying WAN DNS record ... "
/usr/bin/curl -s "https://${NM_PDNS_USER}:${NM_PDNS_PASS}@${NM_PDNS_WANDNS}/nic/update?hostname=${MAIN_CERT}&myip=${NEWIP}" > /dev/null 2>&1
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
echo
fi
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}"
echo