From 2f2b60cc946eb8bf562f7eec303764c1587d631e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 27 Mar 2019 00:49:37 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d438df7b..de58fe36 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1196,7 +1196,7 @@ SERVICES(){ } SERVICE(){ - if [ "${3}" != "q"]; then + if [ "${3}" != "q" ]; then if [ "${NM_SERVICES[${1}]}" = "" ]; then echo -e "${idsCL[Red]}(${1}) is not an allowed service.${idsCL[Default]}" exit 1 @@ -1229,11 +1229,11 @@ SERVICE(){ else NCMD="ssh root@${nip}" fi - if [ "${3}" != "q"]; then + if [ "${3}" != "q" ]; then echo -en "${NM_SRVCOPTS[${2}]}ing on ${NM_NODETYPES[$NTYPE]}-Node${nid} ($nip)... ${idsCL[Default]}" fi $NCMD systemctl $2 $1 - if [ "${3}" != "q"]; then + if [ "${3}" != "q" ]; then if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}" elif [ "$(${NCMD} systemctl is-active ${1})" = "active" ]; then @@ -1249,7 +1249,7 @@ SERVICE(){ fi done - if [ "${3}" != "q"]; then + if [ "${3}" != "q" ]; then echo echo -e "${idsCL[Green]}${NM_SERVICES[${1}]} has been ${NM_SRVCOPTS[${2}]}ed${idsCL[Default]}" echo