From 4a2272df8bdf7769e7b27b7ef808f9a6eda8d1ee Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Feb 2019 18:50:10 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a0e8f7ec..5fef8b5f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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 @@ -418,6 +418,9 @@ service) echo "" exit 0 ;; + gui) + + ;; *) echo -e "Usage: ${idsCL[Yellow]}nodemgmt${idsCL[Default]} { ${idsCL[Yellow]}service${idsCL[Default]} [service] [action] | ${idsCL[Yellow]}status${idsCL[Default]} | ${idsCL[Yellow]}newcert${idsCL[Default]} [domain(,s)] | ${idsCL[Yellow]}certrenew${idsCL[Default]} }"