瀏覽代碼

it makes elegant sense in my head

pull/258/head
Luke Smith 1 年之前
父節點
當前提交
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)" &&
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*)
apt install -y python3-certbot-nginx
certbot -d "$maildomain" certonly --nginx --register-unsafely-without-email --agree-tos


Loading…
取消
儲存