mirror of https://github.com/certd/certd
perf: ssh 配置sudo免密提示
parent
eb75e52278
commit
e1e7011853
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: Plugin Apply
|
name: Plugin Apply
|
||||||
about: 请求支持新部署插件
|
about: 部署插件申请支持
|
||||||
title: "[Plugin] "
|
title: "[Plugin] "
|
||||||
labels: feature
|
labels: feature
|
||||||
---
|
---
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: DNS Provider Apply
|
name: DNS Provider Apply
|
||||||
about: 请求支持新的域名提供商
|
about: 域名提供商申请支持
|
||||||
title: "[DNS] "
|
title: "[DNS] "
|
||||||
labels: feature
|
labels: feature
|
||||||
---
|
---
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: Bug Report
|
name: Bug Report
|
||||||
about: 报告一个错误或问题
|
about: 错误或问题报告
|
||||||
title: "[BUG] "
|
title: "[BUG] "
|
||||||
labels: bug
|
labels: bug
|
||||||
---
|
---
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: Feature Request
|
name: Feature Request
|
||||||
about: 新需求、新特性
|
about: 新需求、新特性申请支持
|
||||||
title: "[Feature] "
|
title: "[Feature] "
|
||||||
labels: feature
|
labels: feature
|
||||||
---
|
---
|
|
@ -247,6 +247,9 @@ export class AsyncSsh2Client {
|
||||||
const err = this.convert(iconv, ret);
|
const err = this.convert(iconv, ret);
|
||||||
stdErr += err;
|
stdErr += err;
|
||||||
hasErrorLog = true;
|
hasErrorLog = true;
|
||||||
|
if (err.includes("sudo: a password is required")) {
|
||||||
|
this.logger.warn("请配置sudo免密,否则命令无法执行");
|
||||||
|
}
|
||||||
this.logger.error(`[${this.connConf.host}][error]: ` + err.trimEnd());
|
this.logger.error(`[${this.connConf.host}][error]: ` + err.trimEnd());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue