Correct dependency paths for checkPad script.

pull/627/head
John McLear 2012-04-30 19:23:41 +02:00
parent 40af25d282
commit 73a962e6ca
1 changed files with 5 additions and 5 deletions

View File

@ -4,17 +4,17 @@
if(process.argv.length != 3) if(process.argv.length != 3)
{ {
console.error("Use: node checkPad.js $PADID"); console.error("Use: node bin/checkPad.js $PADID");
process.exit(1); process.exit(1);
} }
//get the padID //get the padID
var padId = process.argv[2]; var padId = process.argv[2];
//initalize the database //initalize the database
var log4js = require("log4js"); var log4js = require("../src/node_modules/log4js");
log4js.setGlobalLogLevel("INFO"); log4js.setGlobalLogLevel("INFO");
var async = require("async"); var async = require("../src/node_modules/async");
var db = require('../node/db/DB'); var db = require('../src/node/db/DB');
var Changeset = require("ep_etherpad-lite/static/js/Changeset"); var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var padManager; var padManager;
@ -28,7 +28,7 @@ async.series([
//get the pad //get the pad
function (callback) function (callback)
{ {
padManager = require('../node/db/PadManager'); padManager = require('../src/node/db/PadManager');
padManager.doesPadExists(padId, function(err, exists) padManager.doesPadExists(padId, function(err, exists)
{ {