Update powerwall.sh
This commit is contained in:
@@ -1086,7 +1086,8 @@ SHUTDOWN_SERVERS(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
SHUTDOWN_SERVER(){
|
SHUTDOWN_SERVER(){
|
||||||
|
# TEST=true
|
||||||
if [ "${PW_iDRACHOST_SHORTNAMES[${1}]}" != "" ]; then
|
if [ "${PW_iDRACHOST_SHORTNAMES[${1}]}" != "" ]; then
|
||||||
tmp=${PW_iDRACHOST_SHORTNAMES[${1}]}
|
tmp=${PW_iDRACHOST_SHORTNAMES[${1}]}
|
||||||
hostip=${PW_HOST_ADDRESSES[${tmp}]}
|
hostip=${PW_HOST_ADDRESSES[${tmp}]}
|
||||||
@@ -1137,7 +1138,7 @@ SHUTDOWN_SERVER(){
|
|||||||
echo -e "${idsCL[Green]}Done\n"
|
echo -e "${idsCL[Green]}Done\n"
|
||||||
|
|
||||||
echo -en "${idsCL[LightCyan]}Shutting down Host ... "
|
echo -en "${idsCL[LightCyan]}Shutting down Host ... "
|
||||||
[ "${TEST}" != "true" ] && ssh root@${hostip} 'esxcli system shutdown poweroff -d 10 -r "Automated ESXi host shutdown"' & >/dev/null 2>&1
|
[ "${TEST}" != "true" ] && ssh root@${hostip} 'esxcli system shutdown poweroff -d 10 -r "Automated ESXi host shutdown"' >/dev/null 2>&1
|
||||||
echo -e "${idsCL[Green]}Host will begin shutdown in 10secs\n"
|
echo -e "${idsCL[Green]}Host will begin shutdown in 10secs\n"
|
||||||
|
|
||||||
echo -en "${idsCL[LightCyan]}Disabling maintenance mode ... "
|
echo -en "${idsCL[LightCyan]}Disabling maintenance mode ... "
|
||||||
|
|||||||
Reference in New Issue
Block a user