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)
echo -e "${idsCL[Green]}Done\n"
echo -en "${idsCL[LightCyan]}Waiting for Host ${host} (${hostip}) to shutdown ... "
if [ "${TEST}" != "true" ]; then
while ping -qw 10 -c3 "${hostip}">/dev/null 2>&1; do
sleep 1
done
fi
echo -e "${idsCL[Green]}Done\n"
echo -en "${idsCL[LightCyan]}The host ${host} (${hostip}) will be shutdown momentarily ... "
# echo -en "${idsCL[LightCyan]}Waiting for Host ${host} (${hostip}) to shutdown ... "
# if [ "${TEST}" != "true" ]; then
# while ping -qw 10 -c3 "${hostip}">/dev/null 2>&1; do
# sleep 1
# done
# fi
# echo -e "${idsCL[Green]}Done\n"
else
echo -e "${idsCL[LightRed]}Host cannot be found for '${1}'${idsCL[Default]}"