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

Merge branch 'feature/reindex'

parents 08563465 e869df2f
Branches
No related tags found
No related merge requests found
Pipeline #8736 passed
......@@ -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