Update certs.inc
This commit is contained in:
@@ -650,9 +650,6 @@ VCENTER-SSL(){
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ssh -q root@${NM_VC_HOSTNAME} 'sed -i "/PDNS_Token/d" /root/.acme.sh/account.conf'
|
|
||||||
ssh -q root@${NM_VC_HOSTNAME} 'sed -i "/PDNS_Url/d" /root/.acme.sh/account.conf'
|
|
||||||
|
|
||||||
echo '#!/usr/bin/env bash' >| /tmp/vcenter-update-ssl.sh
|
echo '#!/usr/bin/env bash' >| /tmp/vcenter-update-ssl.sh
|
||||||
echo "export PDNS_Url='${NM_PDNS_URL}'
|
echo "export PDNS_Url='${NM_PDNS_URL}'
|
||||||
export PDNS_Token='${NM_PDNS_APIKEY}'
|
export PDNS_Token='${NM_PDNS_APIKEY}'
|
||||||
@@ -661,7 +658,7 @@ export PDNS_Ttl=60
|
|||||||
|
|
||||||
if ssh -q root@${NM_VC_HOSTNAME} [ ! -d ${NM_VC_ACMEFOLDER} ]; then
|
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"
|
echo -e "${idsCL[Yellow]}Installing acme.sh scripts onto vCenter ... ${idsCL[Default]}\n"
|
||||||
until [ "${eml}" != "" ]; do
|
until [ "${le_email}" != "" ]; do
|
||||||
echo -en "${idsCL[LightCyan]}Enter your email to register with LetsEncrypt: ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Enter your email to register with LetsEncrypt: ${idsCL[Default]}"
|
||||||
read le_email
|
read le_email
|
||||||
echo
|
echo
|
||||||
@@ -685,6 +682,8 @@ export PDNS_Ttl=60
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ssh -q root@${NM_VC_HOSTNAME} 'sed -i "/PDNS_Token/d" /root/.acme.sh/account.conf'
|
||||||
|
ssh -q root@${NM_VC_HOSTNAME} 'sed -i "/PDNS_Url/d" /root/.acme.sh/account.conf'
|
||||||
scp -q /tmp/vcenter-update-ssl.sh root@${NM_VC_HOSTNAME}:/tmp/vcenter-update-ssl.sh
|
scp -q /tmp/vcenter-update-ssl.sh root@${NM_VC_HOSTNAME}:/tmp/vcenter-update-ssl.sh
|
||||||
ssh -q root@${NM_VC_HOSTNAME} "bash /tmp/vcenter-update-ssl.sh"
|
ssh -q root@${NM_VC_HOSTNAME} "bash /tmp/vcenter-update-ssl.sh"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user