diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 0eabe323..e45f54d7 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}" "${NM_SERVICES[@]}" ; then + if [ "${NM_SERVICES[${2}]}" != "" ]; then echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}" exit 1 fi