From 513f2c8eafa231eb94e07831efdffd1ecf10b96b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 13 Dec 2023 07:47:56 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- shutdown-test.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults.inc b/defaults.inc index 8e0cb917..81d98b8b 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.5.13-12122023' +VERS='2.5.14-12132023' noheader=' update service dailytemp confsync ' HC_CW=60 diff --git a/shutdown-test.sh b/shutdown-test.sh index 2c914ac6..cc1ceed0 100644 --- a/shutdown-test.sh +++ b/shutdown-test.sh @@ -64,7 +64,7 @@ SHUTDOWN_SERVER2(){ echo "($(date +'%Y-%m-%d %H:%M:%S')) - Shutting down ${hostname}" >> ${PW_LOGFILE} fi - if [ "${2}" != "maintenance" ] && [ ${MN} -eq 1 ]; then + if [ "${2}" != "maintenance" ] && ([ "${ESXI_HOST}" == "ALL" ] || [ "${ESXI_HOST}" == "OFFSITE" ] || [ "${ESXI_HOST}" == "MAINSITE" ]); then if [ "${ESXI_HOST}" == "ALL" ] || [ "${ESXI_HOST}" == "OFFSITE" ]; then MSG="Disabling CLS for the Offsite Cluster in vCenter" c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done @@ -77,7 +77,7 @@ SHUTDOWN_SERVER2(){ echo -e "${idsCL[Yellow]}(TEST MODE)${idsCL[Default]}" fi fi - if [ "${ESXI_HOST}" != "OFFSITE" ]; then + if [ "${ESXI_HOST}" == "ALL" ] || [ "${ESXI_HOST}" == "MAINSITE" ]; then MSG="Disabling CLS for the Primary Cluster in vCenter" c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done echo -en "${idsCL[White]}${MSG}${MSG_SPC}: "