File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ ssl_cert_issue_standalone() {
501
501
~ /.acme.sh/acme.sh --issue -d ${domain} --standalone --httpport ${WebPort}
502
502
if [ $? -ne 0 ]; then
503
503
LOGE " 证书申请失败,原因请参见报错信息"
504
+ rm -rf ~ /.acme.sh/${domain}
504
505
exit 1
505
506
else
506
507
LOGI " 证书申请成功,开始安装证书..."
@@ -512,6 +513,7 @@ ssl_cert_issue_standalone() {
512
513
513
514
if [ $? -ne 0 ]; then
514
515
LOGE " 证书安装失败,脚本退出"
516
+ rm -rf ~ /.acme.sh/${domain}
515
517
exit 1
516
518
else
517
519
LOGI " 证书安装成功,开启自动更新..."
@@ -585,6 +587,7 @@ ssl_cert_issue_by_cloudflare() {
585
587
~ /.acme.sh/acme.sh --issue --dns dns_cf -d ${CF_Domain} -d * .${CF_Domain} --log
586
588
if [ $? -ne 0 ]; then
587
589
LOGE " 证书签发失败,脚本退出"
590
+ rm -rf ~ /.acme.sh/${CF_Domain}
588
591
exit 1
589
592
else
590
593
LOGI " 证书签发成功,安装中..."
@@ -594,6 +597,7 @@ ssl_cert_issue_by_cloudflare() {
594
597
--fullchain-file /root/cert/fullchain.cer
595
598
if [ $? -ne 0 ]; then
596
599
LOGE " 证书安装失败,脚本退出"
600
+ rm -rf ~ /.acme.sh/${CF_Domain}
597
601
exit 1
598
602
else
599
603
LOGI " 证书安装成功,开启自动更新..."
You can’t perform that action at this time.
0 commit comments