diff --git a/inc/certs.inc b/inc/certs.inc index a2cc2a31..c5ba69d4 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -597,24 +597,6 @@ CHECK_NPMCERTS(){ } CHECK-CERTS(){ - HELP(){ - echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert {hostname}${idsCL[Default]} {" - width=35 - printf "%-${width}s- %s\n" " {hostname}" "(optional: enter hostname for new cert, comma-delimited for multiple)" - printf "%-${width}s- %s\n" " -t|-test" "(enables dry-run mode for CertBot)" - echo -e "}\n" - exit 0 - } - while [ $# -gt 0 ]; do - case "${1}" in - -newsite) NEWSITE=true;; - -expand) CERTEXPAND='--expand';; - -h|-help|--help) HELP;; - *) NEW_CERT=${1};; - esac - shift - done - if [ "${1}" == "check" ]; then rm -f ${NM_LOGFOLDER}/ssl-cert-check.lastrun ${NM_FOLDER}/ssl-cert-check/ssl-cert-check -f ${NM_FOLDER}/conf/ssl-domain-checks.conf > ${NM_LOGFOLDER}/ssl-cert-check.lastrun