Parcourir la source

guess proper cert if mail subdomain not available

pull/77/head
Luke Smith il y a 3 ans
Parent
révision
7295f6ae81
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4C50B54A911F6252
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      emailwiz.sh

+ 3
- 1
emailwiz.sh Voir le fichier

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

[ ! -d "$certdir" ] && echo "Note! You must first have a HTTPS/SSL Certificate for $maildomain.
[ ! -d "$certdir" ] && certdir="$(dirname "$(certbot certificates 2>/dev/null | grep "$maildomain" -A 2 | awk '/Certificate Path/ {print $3}')")"

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

Use Let's Encrypt's Certbot to get that and then rerun this script.



Chargement…
Annuler
Enregistrer