diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1168e99f..f551889b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -430,14 +430,16 @@ VCENTER-SSL(){ echo -e "${idsCL[Green]}Verified acme.sh scripts are installed on vCenter${idsCL[Default]}\n" 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 + " >> /tmp/vcenter-update-ssl.sh + echo "HERE:" + scp /tmp/vcenter-update-ssl.sh root@${NM_VCHOSTNAME}:/tmp/vcenter-update-ssl.sh + ssh root@${NM_VCHOSTNAME} "/tmp/vcenter-update-ssl.sh"