Explorar el Código

save SPC

master
leiyun hace 10 meses
padre
commit
c0521c05be
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/home/controller/index.js

+ 2
- 2
src/home/controller/index.js Ver fichero

@@ -223,6 +223,8 @@ export default class extends Base {
if (!domains || domains.length === 0) {
return;
}
//执行ssh copy
let SCP = this.config().SCP;
try {
const dir2 = this.config().CERT_DIR; //nginx配置文件中
// 1. 复制证书
@@ -235,8 +237,6 @@ export default class extends Base {
await fs.copy(`${dir}/${domain}.key`, `${dir2}/${domain}.key`);
}

//执行ssh copy
let SCP = this.config().SCP;
if (SCP && SCP.length > 0) {
for (let item of SCP) {
scp.scp(


Cargando…
Cancelar
Guardar