Update nodemgmt-scripts.sh
This commit is contained in:
@@ -13,6 +13,11 @@ source /opt/idssys/nodemgmt/defaults.inc
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
service)
|
service)
|
||||||
|
|
||||||
|
TEST="$(containsElement "${2}" "${NODE_SERVICES[@]}")"
|
||||||
|
TESTT="$(containsElement "${2}" "${LOCAL_SERVICES[@]}")"
|
||||||
|
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
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user