Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-29 20:41:57 -06:00
parent 77d3282ada
commit 055ac2beb3

View File

@@ -14,8 +14,10 @@ source /opt/idssys/nodemgmt/defaults.inc
case "$1" in case "$1" in
service) service)
TEST="$(containsElement "${2}" "${NODE_SERVICES[@]}")" containsElement "${2}" "${NODE_SERVICES[@]}"
TESTT="$(containsElement "${2}" "${LOCAL_SERVICES[@]}")" TEST=$?
containsElement "${2}" "${LOCAL_SERVICES[@]}"
TESTT=$?
echo "HERE: '${TEST}'-'${TESTT}'" echo "HERE: '${TEST}'-'${TESTT}'"
if [ "$(containsElement "${2}" "${NODE_SERVICES[@]}")" = "1" ] && [ "$(containsElement "${2}" "${LOCAL_SERVICES[@]}")" = "1" ]; then if [ "$(containsElement "${2}" "${NODE_SERVICES[@]}")" = "1" ] && [ "$(containsElement "${2}" "${LOCAL_SERVICES[@]}")" = "1" ]; then