Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-03 20:07:52 -06:00
parent 2948c38b11
commit 85b197b54b

View File

@@ -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.";