This commit is contained in:
2023-11-03 23:08:51 -05:00
parent fe94e527a1
commit a7705b5025
2 changed files with 17 additions and 14 deletions

View File

@@ -19,8 +19,7 @@ WAIT_TIME=10
# ------ DON'T CHANGE BELOW THIS LINE ------
validate_shutdown()
{
validate_shutdown(){
vim-cmd vmsvc/power.getstate $SRVID | grep -i "off\|Suspended" > /dev/null 2<&1
STATUS=$?
@@ -49,8 +48,7 @@ if [ $TEST -eq 0 ]; then
fi
# read each line as a server ID and suspend/shutdown
for SRVID in $SERVERIDS
do
for SRVID in $SERVERIDS; do
TRY=0
vim-cmd vmsvc/power.getstate $SRVID | grep -i "off\|Suspended" > /dev/null 2<&1