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}) ... "