This commit is contained in:
2023-11-23 23:30:21 -06:00
parent 09d9ff2da3
commit b7191b39db
2 changed files with 7 additions and 2 deletions

View File

@@ -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"