diff --git a/defaults.inc b/defaults.inc index 7861f265..dc8c8518 100755 --- a/defaults.inc +++ b/defaults.inc @@ -31,7 +31,7 @@ DISP_HEADER(){ echo "" echo -e "${idsCL[Yellow]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}" echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}" - if [ "$1" != false ]; then + if [ "$2" = true ]; then echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME}${idsCL[Default]}${idsST[Reset]}" if [ -z ${LOCAL_SERVICES+x} ]; then SERVICES=$( IFS=$','; echo "${NODE_SERVICES[*]}" ) else SERVICES=$( IFS=$','; echo "${LOCAL_SERVICES[*]}" ) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8ea8aaa7..dc7c47c9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -417,7 +417,7 @@ SERVICE(){ } GUI(){ - DISP_HEADER true + DISP_HEADER true true while : do echo " [1] Node Status" @@ -455,7 +455,7 @@ GUI(){ done } if [ ${action-x} ]; then - DISP_HEADER false + DISP_HEADER case $action in newcert) NEWCERT ${2};; certrenew) CERTRENEW;;