Update setup files
This commit is contained in:
parent
c5b43291ab
commit
c911ca671e
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,6 +3,8 @@
|
|||||||
/args/config*.json
|
/args/config*.json
|
||||||
/args/param.json
|
/args/param.json
|
||||||
/args/keys*.json
|
/args/keys*.json
|
||||||
|
/args/prime_index*.b
|
||||||
|
/args/indexes*/
|
||||||
/log.txt
|
/log.txt
|
||||||
/bash_start*
|
/bash_start*
|
||||||
*test*
|
*test*
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
"express-session": "^1.17.2",
|
"express-session": "^1.17.2",
|
||||||
"mysql": "^2.18.1",
|
"mysql": "^2.18.1",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
|
"proper-lockfile": "^4.1.2",
|
||||||
"ws": "^8.2.3"
|
"ws": "^8.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
|
|||||||
@ -122,6 +122,6 @@ function configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!module.parent)
|
if (!module.parent)
|
||||||
configure().then(_ => null).catch(error => console.error(error));
|
configure().then(_ => null).catch(error => console.error(error)).finally(_ => process.exit(0));
|
||||||
else
|
else
|
||||||
module.exports = configure;
|
module.exports = configure;
|
||||||
@ -40,6 +40,6 @@ function createSchema() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!module.parent)
|
if (!module.parent)
|
||||||
createSchema().then(_ => null).catch(_ => null);
|
createSchema().then(_ => null).catch(_ => null).finally(_ => process.exit(0));
|
||||||
else
|
else
|
||||||
module.exports = createSchema;
|
module.exports = createSchema;
|
||||||
@ -8,7 +8,6 @@ npm run setup - Finish the setup (configure and reset password
|
|||||||
npm run configure - Configure the app.
|
npm run configure - Configure the app.
|
||||||
npm run reset-password - Reset the password (for private-key).
|
npm run reset-password - Reset the password (for private-key).
|
||||||
npm run create-schema - Create schema in MySQL database.
|
npm run create-schema - Create schema in MySQL database.
|
||||||
npm run configure-backup - Configure the backup.
|
|
||||||
npm run create-backup-schema - Create backup-schema in MySQL database.
|
npm run create-backup-schema - Create backup-schema in MySQL database.
|
||||||
npm run backup - Run the backup-node.
|
npm run backup - Run the backup-node.
|
||||||
|
|
||||||
|
|||||||
@ -23,13 +23,16 @@ getInput.YesOrNo('Do you want to finish the setup now').then(value => {
|
|||||||
.catch(_ => console.log('Reset the password later using: '))
|
.catch(_ => console.log('Reset the password later using: '))
|
||||||
.finally(_ => {
|
.finally(_ => {
|
||||||
console.log('npm run reset-password');
|
console.log('npm run reset-password');
|
||||||
|
process.exit(0);
|
||||||
})
|
})
|
||||||
} else
|
} else {
|
||||||
console.log('Reset the password later using:\n' + 'npm run reset-password');
|
console.log('Reset the password later using:\n' + 'npm run reset-password');
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log('Finish the setup later using:\n' + 'npm run setup');
|
console.log('Finish the setup later using:\n' + 'npm run setup');
|
||||||
console.log('To configure for backup use:\n' + 'npm run configure-backup');
|
process.exit(0);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -89,6 +89,6 @@ function resetPassword() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!module.parent)
|
if (!module.parent)
|
||||||
resetPassword().then(_ => null).catch(error => console.error(error));
|
resetPassword().then(_ => null).catch(_ => null).finally(_ => process.exit(0));
|
||||||
else
|
else
|
||||||
module.exports = resetPassword;
|
module.exports = resetPassword;
|
||||||
Loading…
Reference in New Issue
Block a user