2012-11-09 22:06:26 +01:00
|
|
|
require("ep_etherpad-lite/node_modules/npm").load({}, function(er,npm) {
|
|
|
|
|
|
|
|
process.chdir(npm.root+'/..')
|
|
|
|
|
2013-01-13 12:20:49 +01:00
|
|
|
var settings = require("ep_etherpad-lite/node/utils/Settings");
|
2012-11-09 22:06:26 +01:00
|
|
|
var dirty = require("ep_etherpad-lite/node_modules/ueberDB/node_modules/dirty")('var/dirty.db');
|
|
|
|
var db = require("ep_etherpad-lite/node/db/DB");
|
|
|
|
|
|
|
|
db.init(function() {
|
|
|
|
db = db.db;
|
|
|
|
dirty.on("load", function() {
|
|
|
|
dirty.forEach(function(key, value) {
|
|
|
|
db.set(key, value);
|
|
|
|
});
|
2012-10-25 18:40:33 +02:00
|
|
|
});
|
|
|
|
});
|
2012-11-09 22:06:26 +01:00
|
|
|
|
2012-10-25 18:40:33 +02:00
|
|
|
});
|