From d401b7c92080531040821d8111db48098884f08c Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 16 Aug 2022 22:44:42 +0800 Subject: [PATCH] install: ignore stop all error (no extra process) --- install/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.js b/install/install.js index 2c1e6d48d..29aae0680 100644 --- a/install/install.js +++ b/install/install.js @@ -240,7 +240,7 @@ To disable this feature, checkout our sourcecode.`); { init: 'install.starting', operations: [ - 'pm2 stop all', + ['pm2 stop all', { ignore: true }], () => fs.writefile(`${__env.HOME}/.hydro/mount.yaml`, mount), `echo "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}\nMINIO_SECRET_KEY=${MINIO_SECRET_KEY}" >/root/.hydro/env`, `pm2 start "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY} MINIO_SECRET_KEY=${MINIO_SECRET_KEY} minio server /data/file" --name minio`, @@ -300,7 +300,7 @@ for (let i = 0; i < steps.length; i++) { if (typeof op[0] === 'string') { retry = 0; exec(op[0], op[1]); - while (__code !== 0) { + while (__code !== 0 && op[1].ignore !== true) { if (op[1].retry && retry < 30) { log.warn('Retry... (%s)', op[0]); exec(op[0], op[1]);