Update nodemgmt-scripts.sh
This commit is contained in:
@@ -424,9 +424,22 @@ VCENTER-SSL(){
|
|||||||
|
|
||||||
if ssh -q root@${NM_VCHOSTNAME} [ ! -d /root/.acme.sh ]; then
|
if ssh -q root@${NM_VCHOSTNAME} [ ! -d /root/.acme.sh ]; then
|
||||||
echo -e "${idsCL[Yellow]}Installing acme.sh scripts on vCenter${idsCL[Default]}\n"
|
echo -e "${idsCL[Yellow]}Installing acme.sh scripts on vCenter${idsCL[Default]}\n"
|
||||||
|
ssh root@${NM_VCHOSTNAME} "wget -O - https://get.acme.sh | sh"
|
||||||
|
echo
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Green]}Verified acme.sh scripts are installed on vCenter${idsCL[Default]}\n"
|
echo -e "${idsCL[Green]}Verified acme.sh scripts are installed on vCenter${idsCL[Default]}\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo '#!/usr/bin/env bash' >| /tmp/vcenter-update-ssl.sh
|
||||||
|
echo "export PDNS_Url='https://wdns.scity.us'
|
||||||
|
export PDNS_Token='${NM_WPDNS_KEY}'
|
||||||
|
export PDNS_ServerId='scity.us'
|
||||||
|
export PDNS_Ttl=60
|
||||||
|
/root/.acme.sh/acme.sh --server letsencrypt -k 2048 --preferred-chain 'ISRG Root X1' --issue --dns dns_pdns -d ${NM_VCHOSTNAME}
|
||||||
|
" >> /tmp/vcenter-update-ssl.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# LIVEMD5=$(ssh root@${NM_VCHOSTNAME} "md5sum $CURRENTLIVE | cut -d\ -f1")
|
# LIVEMD5=$(ssh root@${NM_VCHOSTNAME} "md5sum $CURRENTLIVE | cut -d\ -f1")
|
||||||
# CURRENTMD5=$(md5sum $CERTDIR/cert.pem | cut -d\ -f1)
|
# CURRENTMD5=$(md5sum $CERTDIR/cert.pem | cut -d\ -f1)
|
||||||
|
|||||||
Reference in New Issue
Block a user