From ce2503cad0edb47338a8a7d4b62ba64dceef4cc2 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 17 Jun 2022 18:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/autodeploy/getZip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/autodeploy/getZip.js b/src/rest/autodeploy/getZip.js index cecd78c..e9ae20b 100644 --- a/src/rest/autodeploy/getZip.js +++ b/src/rest/autodeploy/getZip.js @@ -18,8 +18,8 @@ module.exports = { }) Promise.resolve(() => { if (!!info.type) { - let {type, zipPath, target} = info - return execute(`/root/node-service/build.sh ${type} ${zipPath} ${target}`) + let {type, zipPath, target, name} = info + return execute(`/root/node-service/update.sh ${name} ${zipPath}`).then(() => execute(`/root/node-service/build.sh ${type} ${zipPath} ${target}`)) } else { return execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`)) }