From 65310d2fbc3218c946dec965503bbfd596b310f3 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 19 Jan 2021 11:53:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81=E3=80=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A3=80=E6=B5=8Bacme=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/install.sh b/install.sh index 9987b04..af0f266 100644 --- a/install.sh +++ b/install.sh @@ -422,7 +422,7 @@ installTools() { if [[ ! -d "$HOME/.acme.sh" ]] || [[ -d "$HOME/.acme.sh" && -z $(find "$HOME/.acme.sh/acme.sh") ]]; then echoContent green " ---> 安装acme.sh" curl -s https://get.acme.sh | sh >/etc/v2ray-agent/tls/acme.log - if [[ -d "$HOME/.acme.sh" ]] && [[ -z $(find "$HOME/.acme.sh/acme.sh") ]]; then + if [[ ! -d "$HOME/.acme.sh" ]] || [[ -z $(find "$HOME/.acme.sh/acme.sh") ]]; then echoContent red " acme安装失败--->" echoContent yellow "错误排查:" echoContent red " 1.获取Github文件失败,请等待Gitub恢复后尝试,恢复进度可查看 [https://www.githubstatus.com/]" @@ -430,18 +430,6 @@ installTools() { exit 0 fi fi - if [[ -d "$HOME/.acme.sh" ]] && [[ -z $(find $HOME/.acme.sh/ -name "acme.sh") ]]; then - echoContent green " ---> 安装acme.sh" - curl -s https://get.acme.sh | sh >/etc/v2ray-agent/tls/acme.log - if [[ -d "$HOME/.acme.sh" ]] && [[ -z $(find "$HOME/.acme.sh/acme.sh") ]]; then - echoContent red " acme安装失败--->" - echoContent yellow "错误排查:" - echoContent red " 1.获取Github文件失败,请等待GitHub恢复后尝试,恢复进度可查看 [https://www.githubstatus.com/]" - echoContent red " 2.acme.sh脚本出现bug,可查看[https://github.com/acmesh-official/acme.sh] issues" - echoContent red " 3.反馈给开发者[私聊:https://t.me/mack_a] 或 [提issues]" - exit 0 - fi - fi } # 初始化Nginx申请证书配置