fix(脚本): 修改无法安装tls的bug

pull/534/merge
mack-a 2021-01-12 16:02:13 +08:00
parent 31c11b4a5e
commit e35fda184a
1 changed files with 6 additions and 3 deletions

View File

@ -641,8 +641,9 @@ installTLS(){
then then
tlsDomain=${domain} tlsDomain=${domain}
fi fi
# 重构安装tls # 安装tls
if [[ -d "/root/.acme.sh/${tlsDomain}_ecc" && ! -f "/root/.acme.sh/${tlsDomain}_ecc/${tlsDomain}.key" && ! -f "/root/.acme.sh/${tlsDomain}_ecc/${tlsDomain}.cer" ]]
if [[ -d "/root/.acme.sh" && ! -f "/root/.acme.sh/${tlsDomain}_ecc/${tlsDomain}.key" && ! -f "/root/.acme.sh/${tlsDomain}_ecc/${tlsDomain}.cer" ]]
then then
echoContent green " ---> 安装TLS证书" echoContent green " ---> 安装TLS证书"
if [[ ! -z "${pingIPv6}" ]] if [[ ! -z "${pingIPv6}" ]]
@ -687,7 +688,9 @@ installTLS(){
fi fi
fi fi
fi fi
else
echoContent yellow " ---> 未安装acme.sh"
exit 0;
fi fi
} }
# 配置伪装博客 # 配置伪装博客