mirror of
https://github.com/certd/certd.git
synced 2026-04-27 23:37:29 +08:00
Merge branch 'v2-dev' of https://github.com/certd/certd into v2-dev
This commit is contained in:
@@ -126,6 +126,12 @@ export class AliyunDeployCertToESA extends AbstractTaskPlugin {
|
|||||||
|
|
||||||
for (const siteId of this.siteIds) {
|
for (const siteId of this.siteIds) {
|
||||||
|
|
||||||
|
try{
|
||||||
|
await this.clearSiteCert(client,siteId);
|
||||||
|
}catch (e) {
|
||||||
|
this.logger.error("清理站点[${siteId}]证书失败",e)
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await client.doRequest({
|
const res = await client.doRequest({
|
||||||
// 接口名称
|
// 接口名称
|
||||||
@@ -149,13 +155,15 @@ export class AliyunDeployCertToESA extends AbstractTaskPlugin {
|
|||||||
}else{
|
}else{
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
}finally{
|
||||||
|
try{
|
||||||
|
await this.clearSiteCert(client,siteId);
|
||||||
|
}catch (e) {
|
||||||
|
this.logger.error("清理站点[${siteId}]证书失败",e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try{
|
|
||||||
await this.clearSiteCert(client,siteId);
|
|
||||||
}catch (e) {
|
|
||||||
this.logger.error("清理站点[${siteId}]证书失败",e)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user