From 7796ed41755c12046b980d68a1452943bfbc7e89 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 25 Apr 2023 16:46:18 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6dd4a9d7..dc415c95 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -768,7 +768,13 @@ NEWCERT(){ echo -e -n "${idsCL[LightCyan]}Reload NGINX on LB Nodes (Y/n): ${idsCL[Default]}" read -n 1 NGINXRELOAD showdivide=yes - [[ ${NGINXRELOAD} =~ ^[Nn]$ ]] && tmp='' || SERVICE nginx reload + if [[ ${NGINXRELOAD} =~ ^[Nn]$ ]] || [ "${NGINXRELOAD}" == "" ]; then + SERVICE nginx reload + elif [[ ${NGINXRELOAD} =~ ^[Nn]$ ]]; then + tmp='' + else + SERVICE nginx reload + fi fi echo