1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

All use SHA384/RSA3072 mesh agents

This commit is contained in:
Ylian Saint-Hilaire 2017-10-16 20:11:03 -07:00
parent ace4046415
commit c848956aa4
18 changed files with 284 additions and 10 deletions

2
db.js
View file

@ -52,8 +52,10 @@ module.exports.CreateDB = function (args, datapath) {
obj.Get('SchemaVersion', function (err, docs) {
var ver = 0;
if (docs && docs.length == 1) { ver = docs[0].value; }
if (ver == 1) { console.log('This is an unsupported beta 1 database, delete it to create a new one.'); process.exit(0); }
// TODO: Any schema upgrades here...
obj.Set({ _id: 'SchemaVersion', value: 2 });
func(ver);
});