From 38200f864058ca97276950106f5a5cb961242d56 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Jan 2019 20:49:38 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 021f2d84..6d954206 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -13,14 +13,7 @@ source /opt/idssys/nodemgmt/defaults.inc case "$1" in service) - - containsElement "${2}" "${NODE_SERVICES[@]}" - TEST=$? - containsElement "${2}" "${LOCAL_SERVICES[@]}" - TESTT=$? - echo "HERE: '${TEST}'-'${TESTT}'" - - if ! containsElement "${2}" "${NODE_SERVICES[@]}" && ! containsElement "${2}" "${LOCAL_SERVICES[@]}" ; then + if ! containsElement "${2}" "${NM_SERVICES[@]}" ; then echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}" exit 1 fi