update
This commit is contained in:
@@ -7,12 +7,12 @@ NEWCERT(){
|
|||||||
else
|
else
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-test|-t) CERTTEST=1;;
|
-t|-test) CERTTEST=1;;
|
||||||
-expand) CERTEXPAND='--expand';;
|
-expand) CERTEXPAND='--expand';;
|
||||||
-h|-help|--help)
|
-h|-help|--help)
|
||||||
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg newcert {hostname}${idsCL[Default]} {"
|
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg newcert {hostname}${idsCL[Default]} {"
|
||||||
width=33
|
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)"
|
printf "%-${width}s- %s\n" " {hostname}" "(optional: enter hostname for new cert, comma-delimited for multiple)"
|
||||||
echo -e "}\n"
|
echo -e "}\n"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
@@ -171,13 +171,13 @@ LISTCERTS(){
|
|||||||
EDIT=0; SEARCH=0
|
EDIT=0; SEARCH=0
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-edit|-e) EDIT=1;;
|
-e|-edit) EDIT=1;;
|
||||||
-search|-s) SEARCH=${2};;
|
-s|-search) SEARCH=${2};;
|
||||||
-h | -help | --help)
|
-h | -help | --help)
|
||||||
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg listcerts${idsCL[Default]} {"
|
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg listcerts${idsCL[Default]} {"
|
||||||
width=33
|
width=33
|
||||||
printf "%-${width}s- %s\n" " -edit|-e" "(enables edit mode)"
|
printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)"
|
||||||
printf "%-${width}s- %s\n" " -search|-s {search}" "(narrows list to cert names containing {search})"
|
printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to cert names containing {search})"
|
||||||
echo -e "}\n"
|
echo -e "}\n"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ NEWSITE(){
|
|||||||
echo
|
echo
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-test|-t) CERTTEST=1;;
|
-t|-test) CERTTEST=1;;
|
||||||
-site) NEW_SITE=${2};;
|
-site) NEW_SITE=${2};;
|
||||||
-type) SITE_TYPE=${2};;
|
-type) SITE_TYPE=${2};;
|
||||||
-ssl) CREATE_SSL=${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" " -hsts {yes or no}" "(hsts support)"
|
||||||
printf "%-${width}s- %s\n" " -exploits {yes or no}" "(block exploits)"
|
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" " -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 "}"
|
echo "}"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
@@ -620,13 +620,13 @@ SITEINFO(){
|
|||||||
EDIT=0; SEARCH=0
|
EDIT=0; SEARCH=0
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-edit|-e) EDIT=1;;
|
-e|-edit) EDIT=1;;
|
||||||
-search|-s) SEARCH=${2};;
|
-s|-search) SEARCH=${2};;
|
||||||
-h | -help | --help)
|
-h | -help | --help)
|
||||||
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg siteinfo${idsCL[Default]} {"
|
echo -e "Usage: ${idsCL[Yellow]}nodemgmt / nmg siteinfo${idsCL[Default]} {"
|
||||||
width=33
|
width=33
|
||||||
printf "%-${width}s- %s\n" " -edit|-e" "(enables edit mode)"
|
printf "%-${width}s- %s\n" " -e|-edit" "(enables edit mode)"
|
||||||
printf "%-${width}s- %s\n" " -search|-s {search}" "(narrows list to hostnames containing {search})"
|
printf "%-${width}s- %s\n" " -s|-search {search}" "(narrows list to hostnames containing {search})"
|
||||||
echo -e "}\n"
|
echo -e "}\n"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user