From d4ab07d6cfcc2bdcc89e4e80472b338b0ed30d4f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 31 Oct 2023 22:35:35 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 6ab937f8..a11f43e5 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -1118,8 +1118,10 @@ SHUTDOWN_SERVER(){ echo "($datetime) - Shutting down ${host} (${hostip})" >> ${PW_LOGFILE} echo -en "${idsCL[LightCyan]}Enabling Maintenance mode and will wait for iSCSI VM's to begin migrating ... " - [ "${TEST}" != "true" ] && ${PW_FOLDER}/esxi-scripts/host-maintenance_mode.ps1 ${PW_ESXI_HOST_NAMES[${hostip}]} & >/dev/null 2>&1 - sleep 45s + if [ "${TEST}" != "true" ]; then + ${PW_FOLDER}/esxi-scripts/host-maintenance_mode.ps1 ${PW_ESXI_HOST_NAMES[${hostip}]} & >/dev/null 2>&1 + sleep 45s + fi echo -e "${idsCL[Green]}Done\n" echo -en "${idsCL[LightCyan]}Shutting Down VM's on: ${host} (${hostip}) ... "