Update shutdown-test.sh
This commit is contained in:
1 parent
3fa2cee0be
commit
71b2c8b069
1 file changed
+5
@@ -50,6 +50,11 @@ SHUTDOWN_SERVER2(){
|
|||||||
hostname=${PW_ESXI_HOST_NAMES[${ESXI_HOST}]}
|
hostname=${PW_ESXI_HOST_NAMES[${ESXI_HOST}]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
DIVIDER . yellow 75
|
||||||
|
echo -e "${idsCL[Yellow]}Shutting down, ${hostname}${idsCL[Default]}"
|
||||||
|
DIVIDER . yellow 75
|
||||||
|
|
||||||
if [ "${ESXI_HOSTS}" != "" ]; then
|
if [ "${ESXI_HOSTS}" != "" ]; then
|
||||||
if [ "${2}" == "maintenance" ]; then
|
if [ "${2}" == "maintenance" ]; then
|
||||||
echo "($(date +'%Y-%m-%d %H:%M:%S')) - Putting ${hostname} into maintenance mode" >> ${PW_LOGFILE}
|
echo "($(date +'%Y-%m-%d %H:%M:%S')) - Putting ${hostname} into maintenance mode" >> ${PW_LOGFILE}
|
||||||
|
|||||||
Reference in new issue
Block a user