Fix #655, wrong located APIKEY.txt

This commit is contained in:
0ip 2012-05-13 00:34:26 +03:00
parent 476065b68d
commit 99ecadc0c3
1 changed files with 2 additions and 2 deletions

View File

@ -29,12 +29,12 @@ var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
var apikey = null; var apikey = null;
try try
{ {
apikey = fs.readFileSync("../APIKEY.txt","utf8"); apikey = fs.readFileSync("./APIKEY.txt","utf8");
} }
catch(e) catch(e)
{ {
apikey = randomString(32); apikey = randomString(32);
fs.writeFileSync("../APIKEY.txt",apikey,"utf8"); fs.writeFileSync("./APIKEY.txt",apikey,"utf8");
} }
//a list of all functions //a list of all functions