From d3a061329df767d60126638ac1b3693d66458a65 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 22 Nov 2023 21:22:53 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8c03ee62..4929983d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -976,10 +976,11 @@ GUI(){ keepalive-config) KEEPALIVE-CONFIG;; vc-ssl) if [ "${2,,}" == "log" ] || [ "${3,,}" == "log" ]; then - echo "$(date) - vCenter Update Initiated" >> ${NM_LOGFOLDER}/vc-ssl.log - ${NM_SCRIPT} vc-ssl ${2} report >> ${NM_LOGFOLDER}/vc-ssl.log - echo "$(date) - vCenter Update Completed -" >> ${NM_LOGFOLDER}/vc-ssl.log + exec 3>&1 >>${NM_LOGFOLDER}/vc-ssl.log 2>&1 + echo "$(date) #### vCenter Update Initiated ####" + ${NM_SCRIPT} vc-ssl ${2} report + echo "$(date) #### vCenter Update Completed #### +" else VCENTER-SSL ${2,,} fi