From b7191b39db7ff8add64681d14650e9294ebb7b74 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 23 Nov 2023 23:30:21 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- inc/certs.inc | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index 4fd3d076..1157be1e 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERS='4.15.21-11232023' +VERS='4.15.22-11232023' 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 ' CERT_DAEMON='/snap/bin/certbot' diff --git a/inc/certs.inc b/inc/certs.inc index 1aff3def..6520f4b4 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -661,7 +661,12 @@ export PDNS_Ttl=60 if ssh -q root@${NM_VC_HOSTNAME} [ ! -d ${NM_VC_ACMEFOLDER} ]; then echo -e "${idsCL[Yellow]}Installing acme.sh scripts onto vCenter ... ${idsCL[Default]}\n" - ssh -q root@${NM_VC_HOSTNAME} "wget -O - https://get.acme.sh | sh" + until [ "${eml}" != "" ]; do + echo -en "${idsCL[LightCyan]}Enter your email to register with LetsEncrypt: ${idsCL[Default]}" + read le_email + echo + done + ssh -q root@${NM_VC_HOSTNAME} "wget -O - https://get.acme.sh | sh -s email=${le_email}" else echo -e "${idsCL[Green]}Verified acme.sh scripts are installed on vCenter, checking for updates ... ${idsCL[Default]}\n" ssh -q root@${NM_VC_HOSTNAME} "${NM_VC_ACMEFOLDER}/${NM_VC_ACMESCRIPT} --upgrade"