diff --git a/defaults.inc b/defaults.inc index a93886d8..040cdc70 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='5.2.1-11092024' +VERS='5.2.3-11092024' NM_BETA=false 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 betacheck offsite-staticroute-fix ' diff --git a/inc/certs.inc b/inc/certs.inc index da79b338..69f72c61 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -649,6 +649,7 @@ CHECK-CERTS(){ VCENTER-SSL(){ if [ "${NM_VC_HOSTNAME}" != "" ] && [ "${NM_VC_USER}" != "" ] && [ "${NM_VC_PASS}" != "" ] && [ "${NM_PDNS_APIKEY}" != "" ]; then pwsh ${NM_FOLDER}/inc/vCenter-SSL.ps1 + ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@10.10.1.60 "Rescan-VBREntity -AllHosts" fi } diff --git a/inc/vCenter-SSL.ps1 b/inc/vCenter-SSL.ps1 index d158bd5a..c454ca7c 100644 --- a/inc/vCenter-SSL.ps1 +++ b/inc/vCenter-SSL.ps1 @@ -244,7 +244,4 @@ else { Write-Error "Failed to Replace Certificate, Please verify Correct Configuration and Retry" } -Import-Module VMware.VimAutomation.Core -Rescan-VBREntity -AllHosts - }