Update shutdown-test.sh

This commit is contained in:
2023-12-12 22:10:34 -06:00
parent 3fa2cee0be
commit 71b2c8b069

View File

@@ -50,6 +50,11 @@ SHUTDOWN_SERVER2(){
hostname=${PW_ESXI_HOST_NAMES[${ESXI_HOST}]}
fi
echo
DIVIDER . yellow 75
echo -e "${idsCL[Yellow]}Shutting down, ${hostname}${idsCL[Default]}"
DIVIDER . yellow 75
if [ "${ESXI_HOSTS}" != "" ]; then
if [ "${2}" == "maintenance" ]; then
echo "($(date +'%Y-%m-%d %H:%M:%S')) - Putting ${hostname} into maintenance mode" >> ${PW_LOGFILE}