Przeglądaj źródła

save SPC

master
leiyun 10 miesięcy temu
rodzic
commit
c0521c05be
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      src/home/controller/index.js

+ 2
- 2
src/home/controller/index.js Wyświetl plik

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


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


Ładowanie…
Anuluj
Zapisz