From ddd49638634bd04d0ef02bb5a8d3e0cc119a7ba0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 13 Nov 2023 14:46:05 -0600 Subject: [PATCH] update --- inc/certs.inc | 12 ++++++------ inc/sites.inc | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/inc/certs.inc b/inc/certs.inc index 06fdadab..ffce779a 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -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 diff --git a/inc/sites.inc b/inc/sites.inc index a4d25d9b..5bb3562b 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -165,7 +165,7 @@ NEWSITE(){ echo while [ $# -gt 0 ]; do case "$1" in - -test|-t) CERTTEST=1;; + -t|-test) CERTTEST=1;; -site) NEW_SITE=${2};; -type) SITE_TYPE=${2};; -ssl) CREATE_SSL=${2};; @@ -190,7 +190,7 @@ NEWSITE(){ printf "%-${width}s- %s\n" " -hsts {yes or no}" "(hsts support)" printf "%-${width}s- %s\n" " -exploits {yes or no}" "(block exploits)" printf "%-${width}s- %s\n" " -secure {yes or no}" "(secure access [nginx/.htpasswd])" - 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)" echo "}" exit 0;; esac @@ -620,13 +620,13 @@ SITEINFO(){ 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 siteinfo${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 hostnames containing {search})" + 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" exit 0;; esac