update
This commit is contained in:
@@ -649,7 +649,6 @@ CHECK-CERTS(){
|
|||||||
VCENTER-SSL(){
|
VCENTER-SSL(){
|
||||||
if [ "${NM_VC_HOSTNAME}" != "" ] && [ "${NM_VC_USER}" != "" ] && [ "${NM_VC_PASS}" != "" ] && [ "${NM_PDNS_APIKEY}" != "" ]; then
|
if [ "${NM_VC_HOSTNAME}" != "" ] && [ "${NM_VC_USER}" != "" ] && [ "${NM_VC_PASS}" != "" ] && [ "${NM_PDNS_APIKEY}" != "" ]; then
|
||||||
pwsh ${NM_FOLDER}/inc/vCenter-SSL.ps1
|
pwsh ${NM_FOLDER}/inc/vCenter-SSL.ps1
|
||||||
ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 backup@10.10.1.60 "Rescan-VBREntity -AllHosts"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env pwsh
|
#!/usr/bin/env pwsh
|
||||||
. /opt/idssys/nodemgmt/conf/powerwall/settings.ps1
|
. /opt/idssys/nodemgmt/conf/powerwall/settings.ps1
|
||||||
|
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Confirm:$false
|
|
||||||
|
|
||||||
function Show-Failure {
|
function Show-Failure {
|
||||||
$global:helpme = $body
|
$global:helpme = $body
|
||||||
$global:helpmoref = $moref
|
$global:helpmoref = $moref
|
||||||
@@ -244,4 +242,6 @@ else {
|
|||||||
Write-Error "Failed to Replace Certificate, Please verify Correct Configuration and Retry"
|
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"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user