소스 검색

detect wildcard certs, fix #98

pull/105/head
Luke Smith 3 년 전
부모
커밋
b50fb342f1
No known key found for this signature in database GPG 키 ID: 4C50B54A911F6252
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      emailwiz.sh

+ 1
- 1
emailwiz.sh 파일 보기

@@ -42,7 +42,7 @@ subdom="mail"
maildomain="$subdom.$domain"
certdir="/etc/letsencrypt/live/$maildomain"

[ ! -d "$certdir" ] && certdir="$(dirname "$(certbot certificates 2>/dev/null | grep "$maildomain" -A 2 | awk '/Certificate Path/ {print $3}')")"
[ ! -d "$certdir" ] && certdir="$(dirname "$(certbot certificates 2>/dev/null | grep "$maildomain\|*.$domain" -A 2 | awk '/Certificate Path/ {print $3}' | head -n1)")"

[ ! -d "$certdir" ] && echo "Note! You must first have a Let's Encrypt Certbot HTTPS/SSL Certificate for $maildomain.



불러오는 중...
취소
저장