diff --git a/inc/sites.inc b/inc/sites.inc index 4f8a2390..8283a4c4 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -191,7 +191,7 @@ NEWSITE(){ printf "%-${width}s- %s\n" " -exploits {yes or no}" "(block exploits)" printf "%-${width}s- %s\n" " -secure {yes or no}" "(secure access [nginx/.htpasswd])" echo "}" - exit 1;; + exit 0;; esac shift done @@ -621,6 +621,14 @@ SITEINFO(){ case "${1}" in -edit|-e) EDIT=1;; -search|-s) SEARCH=${2};; + -h | -help | --help) + echo + echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${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})" + echo "}" + exit 0;; esac shift done