Update nodemgmt-scripts.sh
This commit is contained in:
@@ -13,14 +13,7 @@ source /opt/idssys/nodemgmt/defaults.inc
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
service)
|
service)
|
||||||
|
if ! containsElement "${2}" "${NM_SERVICES[@]}" ; then
|
||||||
containsElement "${2}" "${NODE_SERVICES[@]}"
|
|
||||||
TEST=$?
|
|
||||||
containsElement "${2}" "${LOCAL_SERVICES[@]}"
|
|
||||||
TESTT=$?
|
|
||||||
echo "HERE: '${TEST}'-'${TESTT}'"
|
|
||||||
|
|
||||||
if ! containsElement "${2}" "${NODE_SERVICES[@]}" && ! containsElement "${2}" "${LOCAL_SERVICES[@]}" ; then
|
|
||||||
echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}"
|
echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user