Correct dependency paths for checkPad script.

This commit is contained in:
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)
{
console.error("Use: node checkPad.js $PADID");
console.error("Use: node bin/checkPad.js $PADID");
process.exit(1);
}
//get the padID
var padId = process.argv[2];
//initalize the database
var log4js = require("log4js");
var log4js = require("../src/node_modules/log4js");
log4js.setGlobalLogLevel("INFO");
var async = require("async");
var db = require('../node/db/DB');
var async = require("../src/node_modules/async");
var db = require('../src/node/db/DB');
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var padManager;
@ -28,7 +28,7 @@ async.series([
//get the pad
function (callback)
{
padManager = require('../node/db/PadManager');
padManager = require('../src/node/db/PadManager');
padManager.doesPadExists(padId, function(err, exists)
{