diff --git a/powerwall.sh b/powerwall.sh index c65b9d17..25d73f13 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -1326,7 +1326,7 @@ SHUTDOWN_SERVERS(){ fi done echo - if [ "${2}" == "maintenance" ]; then + if [ "${2}" != "maintenance" ]; then for ESXIHOST in "${PW_MAINHOSTS[@]}"; do MSG="Wait for VM's to power off, then shutdown '${PW_ESXI_HOST_NAMES[${ESXIHOST}]}'" c=0; MSG_SPC=''; spc1=`expr ${hc_cw} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done