From c48682825fdab12859ee64a30a5872794d598ded Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 23 Dec 2022 10:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=89=93=E5=8C=85=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/custom/download.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/custom/download.js b/src/rest/custom/download.js index 883f8c9..f3e6762 100644 --- a/src/rest/custom/download.js +++ b/src/rest/custom/download.js @@ -8,13 +8,13 @@ module.exports = { let id = request.query?.id dbUtils.detail({table: 'node_custom_config', id}).then(info => { if (info?.id) { - let path = `${info.dist}`, zipPath = `/home/deploy/node-service/zips/${info.id}.zip` + let path = `${info.dist}`, zipPath = `/home/deploy/node_deploy/zips/${info.id}.zip` fse.removeSync(zipPath) fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`) if (exists) { execute(`cd ${path}&&zip -r ${info.id}.zip .`) - .then(() => execute(`cd ${path}&&mv ${info.id}.zip /home/deploy/node-service/zips`)) + .then(() => execute(`cd ${path}&&mv ${info.id}.zip /home/deploy/node_deploy/zips`)) .then(() => { console.log('压缩完成!') setTimeout(() => {