This commit is contained in:
2023-11-13 14:53:03 -06:00
parent 95a45e5997
commit 1ab0e3c94a
3 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ NEWCERT(){
-t|-test) CERTTEST=1;; -t|-test) CERTTEST=1;;
-expand) CERTEXPAND='--expand';; -expand) CERTEXPAND='--expand';;
-h|-help|--help) -h|-help|--help)
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg newcert {hostname}${idsCL[Default]} {" echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert {hostname}${idsCL[Default]} {"
width=33 width=33
printf "%-${width}s- %s\n" " -t|-test" "(enables dry-run mode for CertBot)" printf "%-${width}s- %s\n" " -t|-test" "(enables dry-run mode for CertBot)"
printf "%-${width}s- %s\n" " {hostname}" "(optional: enter hostname for new cert, comma-delimited for multiple)" printf "%-${width}s- %s\n" " {hostname}" "(optional: enter hostname for new cert, comma-delimited for multiple)"
@@ -174,7 +174,7 @@ LISTCERTS(){
-e|-edit) EDIT=1;; -e|-edit) EDIT=1;;
-s|-search) SEARCH=${2};; -s|-search) SEARCH=${2};;
-h | -help | --help) -h | -help | --help)
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg certs${idsCL[Default]} {" echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] certs${idsCL[Default]} {"
width=33 width=33
printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)" printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)"
printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to cert names containing {search})" printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to cert names containing {search})"

View File

@@ -8,7 +8,7 @@ DELSITE(){
-*) -*)
echo "Invalid option: '${1}' requires an argument" 1>&2 echo "Invalid option: '${1}' requires an argument" 1>&2
echo echo
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg delsite${idsCL[Default]} {" echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
width=33 width=33
printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)" printf "%-${width}s- %s\n" " -site {FQDN address}" "(*required)"
printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well" printf "%-${width}s- %s\n" " -ssl {yes or [no]}" "Delete SSL certs as well"
@@ -60,7 +60,7 @@ DELSITE(){
else else
echo "Missing arguments" echo "Missing arguments"
echo echo
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg delsite${idsCL[Default]} {" echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
width=33 width=33
printf "%-${width}s- %s\n" " -site {FQDN address}" "Site to delete" 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" " -ssl {yes or [no]}" "Delete SSL certs as well"
@@ -178,7 +178,7 @@ NEWSITE(){
-secure) SECURE=${2};; -secure) SECURE=${2};;
-h | -help | --help) -h | -help | --help)
echo echo
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg newcert${idsCL[Default]} {" echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert${idsCL[Default]} {"
width=33 width=33
printf "%-${width}s- %s\n" " -site {FQDN address(,es)}" "(new site and aliases, comma separated)" printf "%-${width}s- %s\n" " -site {FQDN address(,es)}" "(new site and aliases, comma separated)"
printf "%-${width}s- %s\n" " -ssl {yes or no}" "(defaults to yes)" printf "%-${width}s- %s\n" " -ssl {yes or no}" "(defaults to yes)"

View File

@@ -1032,7 +1032,7 @@ GUI(){
*) *)
echo -e "Commands followed by '-h' will show addtional info. {work-in-progress}" echo -e "Commands followed by '-h' will show addtional info. {work-in-progress}"
echo echo
echo -e "Usage: ${idsCL[LightCyan]}nodemgmt / nmg ${idsCL[Yellow]}{COMMAND}${idsCL[Default]} {" echo -e "Usage: ${idsCL[LightCyan]}[nodemgmt or nmg] ${idsCL[Yellow]}{COMMAND}${idsCL[Default]} {"
echo -e " ${idsCL[Yellow]}backup${idsCL[Default]} - Run backup of node items" echo -e " ${idsCL[Yellow]}backup${idsCL[Default]} - Run backup of node items"
echo -e " ${idsCL[Yellow]}certrenew${idsCL[Default]} - Renew all SSL Certificates" echo -e " ${idsCL[Yellow]}certrenew${idsCL[Default]} - Renew all SSL Certificates"
echo -e " ${idsCL[Yellow]}certs${idsCL[Default]} - View/Edit SSL Certificates" echo -e " ${idsCL[Yellow]}certs${idsCL[Default]} - View/Edit SSL Certificates"