Update powerwall.sh

This commit is contained in:
2023-11-02 18:36:02 -05:00
parent 59a1ef4b34
commit db6fc11eda

View File

@@ -1205,13 +1205,14 @@ SHUTDOWN_SERVER(){
[ "${TEST}" != "true" ] && run=$(ssh root@${hostip} 'esxcli system maintenanceMode set -e false -t 0' >/dev/null 2>&1) [ "${TEST}" != "true" ] && run=$(ssh root@${hostip} 'esxcli system maintenanceMode set -e false -t 0' >/dev/null 2>&1)
echo -e "${idsCL[Green]}Done\n" echo -e "${idsCL[Green]}Done\n"
echo -en "${idsCL[LightCyan]}Waiting for Host ${host} (${hostip}) to shutdown ... " echo -en "${idsCL[LightCyan]}The host ${host} (${hostip}) will be shutdown momentarily ... "
if [ "${TEST}" != "true" ]; then # echo -en "${idsCL[LightCyan]}Waiting for Host ${host} (${hostip}) to shutdown ... "
while ping -qw 10 -c3 "${hostip}">/dev/null 2>&1; do # if [ "${TEST}" != "true" ]; then
sleep 1 # while ping -qw 10 -c3 "${hostip}">/dev/null 2>&1; do
done # sleep 1
fi # done
echo -e "${idsCL[Green]}Done\n" # fi
# echo -e "${idsCL[Green]}Done\n"
else else
echo -e "${idsCL[LightRed]}Host cannot be found for '${1}'${idsCL[Default]}" echo -e "${idsCL[LightRed]}Host cannot be found for '${1}'${idsCL[Default]}"