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