Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-29 21:04:04 -06:00
parent 6bd7e41e5a
commit 22b94acadb

View File

@@ -13,7 +13,7 @@ source /opt/idssys/nodemgmt/defaults.inc
case "$1" in
service)
if ! containsElement "${2}" "${NM_SERVICES[@]}" ; then
if [ "${NM_SERVICES[${2}]}" != "" ]; then
echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}"
exit 1
fi