Skip to content
Snippets Groups Projects
Commit 54b34b72 authored by Éloïs's avatar Éloïs
Browse files

[mod] indexing : get home directory & make sure duniter not running during indexing

parent f41c438f
No related branches found
No related tags found
No related merge requests found
......@@ -46,13 +46,10 @@ module.exports = {
],
cli: [{
name: 'currency-monit [action=start] [host] [port]',
desc: 'Action start : Start duniter with module currency-monit\n'
+'Action indexing : indexing blockchain',
// Disables Duniter node's logs
name: 'currency-monit [start|indexing] [host] [port]',
desc: 'Start duniter with module currency-monit or Indexing blockchain history',
preventIfRunning: true,
logs: false,
onDatabaseExecute: (server, conf, program, params, startServices) => co(function*() {
// currency-monit parameters
......
const os = require('os');
module.exports = function timestampToDatetime(server, conf, program, params) {
// Get monitDatasPath
const mdb = program.mdb || "duniter_default";
const monitDatasPath = os.homedir() + "/.config/duniter/" + mdb + "/currency-monit/";
console.log('sync...');
console.log('monitDatasPath=%s', monitDatasPath);
console.log('ok');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment