From 3eb09a0f71b458bd434d1b8ab44d6a0f16090ae2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 13 Feb 2019 10:19:03 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 778184e7..92e94f71 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1253,8 +1253,8 @@ SERVICE(){ echo -e "${idsCL[Red]}(${1}) is not an allowed service.${idsCL[Default]}" exit 1 fi - if [[ "start,stop,restart,reload,enable,disable" != *"${2}"* ]] && [ "${1}" != "daemon-reload" ]; then - echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}" + if [ "${NM_SRVCOPTS[${2}]}" = "" ]; then + echo -e "${idsCL[Red]}(${2}) is not an allowed service action.${idsCL[Default]}" exit 1 fi if [ "$2" = "start" ] && [ "$1" = "haproxy" ]; then TACT='restart'; else TACT="${2}"; fi