瀏覽代碼

check for wildcard certs as well, resolve #257

pull/258/head
Luke Smith 1 年之前
父節點
當前提交
768baa379f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      emailwiz.sh

+ 1
- 1
emailwiz.sh 查看文件

@@ -49,7 +49,7 @@ for port in 80 993 465 25 587; do
done

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

[ ! -d "$certdir" ] &&


Loading…
取消
儲存