check for wildcard certs as well, resolve #257
This commit is contained in:
parent
50cdd5ddbc
commit
768baa379f
@ -49,7 +49,7 @@ for port in 80 993 465 25 587; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
[ ! -d "$certdir" ] &&
|
[ ! -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%/*}"
|
certdir="${possiblecert%/*}"
|
||||||
|
|
||||||
[ ! -d "$certdir" ] &&
|
[ ! -d "$certdir" ] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user