Skip to content
Snippets Groups Projects
Commit e869df2f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] add `reindex` command

parent 08563465
Branches
Tags
No related merge requests found
......@@ -5,6 +5,7 @@ const fs = require('fs');
const path = require('path');
const main = require(__dirname + '/lib/main.js');
const indexing = require(__dirname + '/lib/indexing.js');
const initMonitDB = require('./lib/DataFinder').initMonitDB;
/****************************************
* TECHNICAL CONFIGURATION
......@@ -86,6 +87,14 @@ module.exports = {
return server && server.disconnect()
}
})
}, {
name: 'reindex',
desc: 'Reset indexed Monit data and rebuild index',
preventIfRunning: true,
logs: false,
async onDatabaseExecute(server, conf, program, params, startServices) {
await initMonitDB(server, true);
}
}]
},
duniterUI: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment