Update powerwall.sh

This commit is contained in:
2023-10-31 22:35:35 -05:00
parent a3664555b6
commit d4ab07d6cf

View File

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