Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix:playground
etherpad-lite
etherpad-lite-1.6.0_move_autogenerated_key_file...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File etherpad-lite-1.6.0_move_autogenerated_key_files_to_var.patch of Package etherpad-lite
Index: etherpad-lite-1.6.0/src/node/handler/APIHandler.js =================================================================== --- etherpad-lite-1.6.0.orig/src/node/handler/APIHandler.js +++ etherpad-lite-1.6.0/src/node/handler/APIHandler.js @@ -29,12 +29,12 @@ var randomString = require("../utils/ran var apikey = null; try { - apikey = fs.readFileSync("./APIKEY.txt","utf8"); + apikey = fs.readFileSync("/var/lib/etherpad-lite/APIKEY.txt","utf8"); } catch(e) { apikey = randomString(32); - fs.writeFileSync("./APIKEY.txt",apikey,"utf8"); + fs.writeFileSync("/var/lib/etherpad-lite/APIKEY.txt",apikey,"utf8"); } //a list of all functions Index: etherpad-lite-1.6.0/src/node/utils/Settings.js =================================================================== --- etherpad-lite-1.6.0.orig/src/node/utils/Settings.js +++ etherpad-lite-1.6.0/src/node/utils/Settings.js @@ -412,10 +412,10 @@ exports.reloadSettings = function reload if (!exports.sessionKey) { try { - exports.sessionKey = fs.readFileSync("./SESSIONKEY.txt","utf8"); + exports.sessionKey = fs.readFileSync("/var/lib/etherpad-lite/SESSIONKEY.txt","utf8"); } catch(e) { exports.sessionKey = randomString(32); - fs.writeFileSync("./SESSIONKEY.txt",exports.sessionKey,"utf8"); + fs.writeFileSync("/var/lib/etherpad-lite/SESSIONKEY.txt",exports.sessionKey,"utf8"); } } else { console.warn("Declaring the sessionKey in the settings.json is deprecated. This value is auto-generated now. Please remove the setting from the file.");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor