From fac2c2b5cf67ea5261944a49f63af9d3cdb47ed0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Jan 2019 20:37:54 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e069f529..259829a5 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -13,7 +13,7 @@ source /opt/idssys/nodemgmt/defaults.inc case "$1" in service) - if [ ! containsElement "${2}" "${NODE_SERVICES[@]}" ] && [ ! containsElement "${2}" "${LOCAL_SERVICES[@]}" ]; then + if [ "$(containsElement "${2}" "${NODE_SERVICES[@]}")" = "1" ] && [ "$(containsElement "${2}" "${LOCAL_SERVICES[@]}")" = "1" ]; then echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}" exit 1 fi