This commit is contained in:
2023-11-12 14:21:51 -06:00
parent f573068619
commit e788991b16
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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})"