Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-29 11:58:31 -06:00
parent a39e1c6e89
commit 025f5c5cca

View File

@@ -14,7 +14,7 @@ source /opt/idssys/nodemgmt/defaults.inc
case "$1" in
service)
containsElement "${2}" "${NODE_SERVICES[@]}"
if [[ "start,stop,restart,enable,disable" != *"${3}"* ]]; then
if [[ "start,stop,restart,enable,disable" != *"${3}"* ]] && [ "${2}" != "reload-daemon" ]; then
echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}"
exit 1
fi