From ba36451e2a0aa8f0206c33c2153df60e75b47b01 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 9 Nov 2024 21:41:50 -0600 Subject: [PATCH] update --- inc/certs.inc | 1 - inc/vCenter-SSL.ps1 | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/certs.inc b/inc/certs.inc index b2ab152b..da79b338 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -649,7 +649,6 @@ 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 backup@10.10.1.60 "Rescan-VBREntity -AllHosts" fi } diff --git a/inc/vCenter-SSL.ps1 b/inc/vCenter-SSL.ps1 index f91dfbdf..52bd9839 100644 --- a/inc/vCenter-SSL.ps1 +++ b/inc/vCenter-SSL.ps1 @@ -1,8 +1,6 @@ #!/usr/bin/env pwsh . /opt/idssys/nodemgmt/conf/powerwall/settings.ps1 -Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Confirm:$false - function Show-Failure { $global:helpme = $body $global:helpmoref = $moref @@ -244,4 +242,6 @@ else { Write-Error "Failed to Replace Certificate, Please verify Correct Configuration and Retry" } +ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 backup@10.10.1.60 "Rescan-VBREntity -AllHosts" + }