mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
install: ignore stop all error (no extra process)
This commit is contained in:
1 parent
98bf0d62a3
commit
d401b7c920
1 file changed
+2
-2
+2
-2
@@ -240,7 +240,7 @@ To disable this feature, checkout our sourcecode.`);
|
|||||||
{
|
{
|
||||||
init: 'install.starting',
|
init: 'install.starting',
|
||||||
operations: [
|
operations: [
|
||||||
'pm2 stop all',
|
['pm2 stop all', { ignore: true }],
|
||||||
() => fs.writefile(`${__env.HOME}/.hydro/mount.yaml`, mount),
|
() => fs.writefile(`${__env.HOME}/.hydro/mount.yaml`, mount),
|
||||||
`echo "MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}\nMINIO_SECRET_KEY=${MINIO_SECRET_KEY}" >/root/.hydro/env`,
|
`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`,
|
`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') {
|
if (typeof op[0] === 'string') {
|
||||||
retry = 0;
|
retry = 0;
|
||||||
exec(op[0], op[1]);
|
exec(op[0], op[1]);
|
||||||
while (__code !== 0) {
|
while (__code !== 0 && op[1].ignore !== true) {
|
||||||
if (op[1].retry && retry < 30) {
|
if (op[1].retry && retry < 30) {
|
||||||
log.warn('Retry... (%s)', op[0]);
|
log.warn('Retry... (%s)', op[0]);
|
||||||
exec(op[0], op[1]);
|
exec(op[0], op[1]);
|
||||||
|
|||||||
Reference in new issue
Block a user