Update certs.inc

This commit is contained in:
2023-07-20 19:30:51 -05:00
parent 811927597b
commit 50f3049257

View File

@@ -17,9 +17,8 @@ NEWCERT(){
if [ "${NEW_CERT}" != "" ]; then
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}"
echo
echo ${NM_CERTPATH}/letsencrypt-acme-challenge
touch ${NM_CERTPATH}/letsencrypt-acme-challenge/test.test
# $CERT_DAEMON certonly --webroot -w ${NM_CERTPATH}/letsencrypt-acme-challenge -d ${NEW_CERT}
sudo -iu www-data "$CERT_DAEMON certonly --webroot -w ${NM_CERTPATH}/letsencrypt-acme-challenge -d ${NEW_CERT}"
# $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT}
chown -R root:le ${NM_CERTPATH}