From b13ba8591cc7b2faa76ebd6c7056747a1ed3e17d Mon Sep 17 00:00:00 2001 From: lsy Date: Wed, 25 Sep 2024 18:20:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9acme=E5=92=8Cnginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Web/acme.sh | 7 ------- Config/Web/nginx.sh | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Config/Web/acme.sh b/Config/Web/acme.sh index 53f9286..edbe0fe 100644 --- a/Config/Web/acme.sh +++ b/Config/Web/acme.sh @@ -85,13 +85,6 @@ EOF echo "请到服务器将80和443端口开启,将域名解析到本机" read -p "解析完成请回车:" eval "${HOME}/.acme.sh/acme.sh --issue ${domain_str} --${mode}" - - for (( i = 0; i < 6; i++ )); do - sleep 15 - if [[ -d "${HOME}/.acme.sh/$(echo "${domain}" | awk '{print $2}')_ecc/fullchain.cer" ]]; then - break - fi - done rm /etc/nginx/conf.d/test.conf ;; '2') diff --git a/Config/Web/nginx.sh b/Config/Web/nginx.sh index 3ace1c5..30b8d36 100644 --- a/Config/Web/nginx.sh +++ b/Config/Web/nginx.sh @@ -51,7 +51,7 @@ case $pick in fi else echo "1.nginx(默认)" - read -p "请选择" pick + read -p "请选择:" pick bash "${path_script}/Config/Web/acme.sh" "nginx" "${domain}" fi