Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-03 18:50:10 -06:00
parent b89c1bc86f
commit 4a2272df8b

View File

@@ -385,7 +385,7 @@ service)
if [ "$3" = "stop" ]; then ADISP='Stopp'
elif [ "$3" = "enable" ]; then ADISP='Enabl'
elif [ "$3" = "disable" ]; then ADISP='Disabl'
else ADISP="$(tr '[:lower:]' '[:upper:]' <<< ${3:0:1})${3:1}"
else ADISP=${3~}
fi
if [ "$3" = "start" ] && [ "$2" = "haproxy" ]; then TACT='restart'; else TACT="${3}"; fi
@@ -417,6 +417,9 @@ service)
echo -e "${idsCL[Green]}${NM_SERVICES[${2}]} has been ${ADISP}ed${idsCL[Default]}"
echo ""
exit 0
;;
gui)
;;
*)