Pārlūkot izejas kodu

detect wildcard certs, fix #98

pull/105/head
Luke Smith pirms 4 gadiem
vecāks
revīzija
b50fb342f1
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4C50B54A911F6252
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      emailwiz.sh

+ 1
- 1
emailwiz.sh Parādīt failu

@@ -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.



Notiek ielāde…
Atcelt
Saglabāt