From 85b197b54b0759fa906d3f9d281abf3742fc662d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Feb 2019 20:07:52 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5b7af50d..74c1e72a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash # NodeMgmt - Galera/NGINX Node Management Scripts -action="$1" +if [ ! -z ${1} ]; then + action="$1" +fi if [ ! -f /opt/idssys/settings/nodemgmt.conf ]; then if [ ! -d /opt/idssys/settings ]; then @@ -57,6 +59,9 @@ STATUS() { echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}" echo "" + if [ -z $action ] && "${action}" = "gui" ]; then + read -n 1 -s -p "Press any key to continue" + fi } NEWCERT(){ echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}" @@ -424,12 +429,7 @@ GUI(){ read -n 1 opt echo "" case $opt in - 1) - echo "" - STATUS - read -n 1 -s -p "Press any key to continue" - DISP_HEADER - ;; + 1) STATUS; GUI;; 2) GLANCES_INSTALL INSTALL_MENU;; 3) X11VNC_INSTALL @@ -441,7 +441,6 @@ GUI(){ 6) LINUPX_UNINSTALL INSTALL_MENU;; [Qq]) EXIT1 - break exit 0;; *) echo "Thats an invaild option,"; echo "please select a valid option only.";