Update powerwall.sh

This commit is contained in:
2023-12-10 12:57:10 -06:00
parent 0391525098
commit 2237ee043c

View File

@@ -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