From e788991b163f4817d6fd25988955d0f0b3d1e280 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 12 Nov 2023 14:21:51 -0600 Subject: [PATCH] update --- inc/certs.inc | 7 +++++++ inc/sites.inc | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/inc/certs.inc b/inc/certs.inc index 0d6aaf1f..0aea0f10 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -9,6 +9,13 @@ NEWCERT(){ case "${1}" in -test|-t) CERTTEST=1;; *) NEW_CERT=${1};; + -h|-help|--help) + echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert {hostname}${idsCL[Default]} {" + width=33 + printf "%-${width}s- %s\n" " -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;; esac shift done diff --git a/inc/sites.inc b/inc/sites.inc index 05aeabce..8bad1495 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -190,6 +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" "(enables dry-run mode for CertBot)" echo "}" exit 0;; esac @@ -622,7 +623,7 @@ SITEINFO(){ -edit|-e) EDIT=1;; -search|-s) SEARCH=${2};; -h | -help | --help) - echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} {" + echo -e "Usage: ${idsCL[Yellow]}nodemgmt 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})"