This commit is contained in:
2023-11-13 14:46:05 -06:00
parent 981a9b7f1a
commit ddd4963863
2 changed files with 12 additions and 12 deletions

View File

@@ -7,12 +7,12 @@ NEWCERT(){
else
while [ $# -gt 0 ]; do
case "${1}" in
-test|-t) CERTTEST=1;;
-t|-test) CERTTEST=1;;
-expand) CERTEXPAND='--expand';;
-h|-help|--help)
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg newcert {hostname}${idsCL[Default]} {"
width=33
printf "%-${width}s- %s\n" " -test|-t" "(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)"
echo -e "}\n"
exit 0;;
@@ -171,13 +171,13 @@ LISTCERTS(){
EDIT=0; SEARCH=0
while [ $# -gt 0 ]; do
case "${1}" in
-edit|-e) EDIT=1;;
-search|-s) SEARCH=${2};;
-e|-edit) EDIT=1;;
-s|-search) SEARCH=${2};;
-h | -help | --help)
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg listcerts${idsCL[Default]} {"
width=33
printf "%-${width}s- %s\n" " -edit|-e" "(enables edit mode)"
printf "%-${width}s- %s\n" " -search|-s {search}" "(narrows list to cert names containing {search})"
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"
exit 0;;
esac