mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
pref: 日志中加密授权信息输出替换成星号
This commit is contained in:
@@ -41,7 +41,7 @@ export class HostShellExecutePlugin extends AbstractTaskPlugin {
|
||||
async onInstance() {}
|
||||
async execute(): Promise<void> {
|
||||
const { script, accessId } = this;
|
||||
const connectConf = await this.accessService.getById(accessId);
|
||||
const connectConf = await this.getAccess(accessId);
|
||||
const sshClient = new SshClient(this.logger);
|
||||
|
||||
const scripts = script.split('\n');
|
||||
|
||||
@@ -278,7 +278,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
|
||||
this.logger.error('复制到当前主机功能已迁移到 “复制到本机”插件,请换成复制到本机插件');
|
||||
return;
|
||||
}
|
||||
const connectConf: SshAccess = await this.accessService.getById(accessId);
|
||||
const connectConf: SshAccess = await this.getAccess(accessId);
|
||||
const sshClient = new SshClient(this.logger);
|
||||
|
||||
if (!accessId) {
|
||||
@@ -370,7 +370,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
|
||||
});
|
||||
|
||||
if (this.script && this.script?.trim()) {
|
||||
const connectConf: SshAccess = await this.accessService.getById(accessId);
|
||||
const connectConf: SshAccess = await this.getAccess(accessId);
|
||||
const sshClient = new SshClient(this.logger);
|
||||
this.logger.info('执行脚本命令');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user