Просмотр исходного кода

it makes elegant sense in my head

pull/258/head
Luke Smith 1 год назад
Родитель
Сommit
548d547949
1 измененных файлов: 3 добавлений и 1 удалений
  1. +3
    -1
      emailwiz.sh

+ 3
- 1
emailwiz.sh Просмотреть файл

@@ -52,7 +52,9 @@ done
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:\.* $maildomain\(\s\|$\)" -A 2 | awk '/Certificate Path/ {print $3}' | head -n1)" &&
certdir="${possiblecert%/*}" certdir="${possiblecert%/*}"


[ ! -d "$certdir" ] && case "$(netstat -tulpn | grep ":80\s")" in
[ ! -d "$certdir" ] &&
certdir="/etc/letsencrypt/live/$maildomain" &&
case "$(netstat -tulpn | grep ":80\s")" in
*nginx*) *nginx*)
apt install -y python3-certbot-nginx apt install -y python3-certbot-nginx
certbot -d "$maildomain" certonly --nginx --register-unsafely-without-email --agree-tos certbot -d "$maildomain" certonly --nginx --register-unsafely-without-email --agree-tos


Загрузка…
Отмена
Сохранить