From f36f2f686d5d1a7d4f83a61ca39306254d5e63d1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 22:38:21 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5b8a151a..25b2ee7d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -180,6 +180,7 @@ DELSITE(){ case "$1" in -site) DEL_SITE=${2};; -ssl) DEL_SSL=${2};; + -list) DELSITES; exit 0;; -*) echo "Invalid option: '${1}' requires an argument" 1>&2 echo "" @@ -238,8 +239,9 @@ DELSITE(){ echo "" echo -e "Usage: ${idsCL[Yellow]}nodemgmt delsite${idsCL[Default]} {" width=33 - printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)" + printf "%-${width}s- %s\n" " -site {FQDN address}" "Site to delete" printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well" + printf "%-${width}s- %s\n" " -list" "List sites (same as running nodemgmt delsites)" echo "}" exit 1 fi