Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-28 19:00:36 -06:00
parent 5a1acbe13b
commit 93375ebb0d

View File

@@ -24,7 +24,7 @@ unset IFS
case "$1" in case "$1" in
service) service)
containsElement "${2}" "${NODE_SERVICES[@]}" containsElement "${2}" "${NODE_SERVICES[@]}"
if [[ "start,stop,restart" == *"${3}"* ]]; then if [[ "start,stop,restart" != *"${3}"* ]]; then
echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}" echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}"
exit 1 exit 1
fi fi