添加遗漏的curl依赖

处理测试签发成功正式签发失败导致的重复执行签发异常问题
pull/211/head
wulabing 2020-01-25 20:23:02 +08:00
parent 832b880cbb
commit 347b2d5e55
1 changed files with 5 additions and 0 deletions

View File

@ -160,6 +160,9 @@ dependency_install(){
${INS} -y install qrencode ${INS} -y install qrencode
judge "安装 qrencode" judge "安装 qrencode"
${INS} -y install curl
judge "安装 crul"
if [[ "${ID}" == "centos" ]];then if [[ "${ID}" == "centos" ]];then
${INS} -y groupinstall "Development tools" ${INS} -y groupinstall "Development tools"
else else
@ -404,6 +407,7 @@ acme(){
sleep 2 sleep 2
else else
echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}" echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}"
rm -rf "~/.acme.sh/${domain}_ecc/${domain}.key" && rm -rf "~/.acme.sh/${domain}_ecc/${domain}.cer"
exit 1 exit 1
fi fi
@ -419,6 +423,7 @@ acme(){
fi fi
else else
echo -e "${Error} ${RedBG} SSL 证书生成失败 ${Font}" echo -e "${Error} ${RedBG} SSL 证书生成失败 ${Font}"
rm -rf "~/.acme.sh/${domain}_ecc/${domain}.key" && rm -rf "~/.acme.sh/${domain}_ecc/${domain}.cer"
exit 1 exit 1
fi fi
} }