update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user