From 347b2d5e55b5325ef89e9d729671013ae33c0f47 Mon Sep 17 00:00:00 2001 From: wulabing Date: Sat, 25 Jan 2020 20:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=81=97=E6=BC=8F=E7=9A=84cu?= =?UTF-8?q?rl=E4=BE=9D=E8=B5=96=20=E5=A4=84=E7=90=86=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=AD=BE=E5=8F=91=E6=88=90=E5=8A=9F=E6=AD=A3=E5=BC=8F=E7=AD=BE?= =?UTF-8?q?=E5=8F=91=E5=A4=B1=E8=B4=A5=E5=AF=BC=E8=87=B4=E7=9A=84=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=89=A7=E8=A1=8C=E7=AD=BE=E5=8F=91=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index afb7766..09c3406 100644 --- a/install.sh +++ b/install.sh @@ -160,6 +160,9 @@ dependency_install(){ ${INS} -y install qrencode judge "安装 qrencode" + ${INS} -y install curl + judge "安装 crul" + if [[ "${ID}" == "centos" ]];then ${INS} -y groupinstall "Development tools" else @@ -404,6 +407,7 @@ acme(){ sleep 2 else echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}" + rm -rf "~/.acme.sh/${domain}_ecc/${domain}.key" && rm -rf "~/.acme.sh/${domain}_ecc/${domain}.cer" exit 1 fi @@ -419,6 +423,7 @@ acme(){ fi else echo -e "${Error} ${RedBG} SSL 证书生成失败 ${Font}" + rm -rf "~/.acme.sh/${domain}_ecc/${domain}.key" && rm -rf "~/.acme.sh/${domain}_ecc/${domain}.cer" exit 1 fi }