This commit is contained in:
2023-11-13 15:03:07 -06:00
parent 288c9653aa
commit 8d42f6ea26
3 changed files with 18 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ NEWCERT(){
-expand) CERTEXPAND='--expand';;
-h|-help|--help)
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert {hostname}${idsCL[Default]} {"
width=33
width=35
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)"
echo -e "}\n"
@@ -175,7 +175,7 @@ LISTCERTS(){
-s|-search) SEARCH=${2};;
-h | -help | --help)
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] certs${idsCL[Default]} {"
width=33
width=35
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})"
echo -e "}\n"

View File

@@ -9,7 +9,7 @@ DELSITE(){
echo "Invalid option: '${1}' requires an argument" 1>&2
echo
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
width=33
width=35
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" " -list" "List sites (same as running nodemgmt delsites)"
@@ -61,7 +61,7 @@ DELSITE(){
echo "Missing arguments"
echo
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] delsite${idsCL[Default]} {"
width=33
width=35
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)"
@@ -179,7 +179,7 @@ NEWSITE(){
-h | -help | --help)
echo
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert${idsCL[Default]} {"
width=33
width=35
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" " -type {'local' or 'proxy'}" "(defaults to local)"
@@ -624,7 +624,7 @@ SITEINFO(){
-s|-search) SEARCH=${2};;
-h | -help | --help)
echo -e "Usage: ${idsCL[LightYellow]}[nodemgmt or nmg] sites ${idsCL[Yellow]}{flags}${idsCL[Default]} {"
width=33
width=35
printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)"
printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to hostnames containing {search})"
echo -e "}\n"