mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
added /abs/path/settings.json handling
before this path, one could only supply a relative path like: --settings ../relative/path/settings.js now one can also use it with absolute paths like: --settings /abs/path/settings.json
This commit is contained in:
parent
b1b972a2b4
commit
e17044d60e
1 changed files with 5 additions and 1 deletions
|
@ -177,7 +177,11 @@ exports.abiwordAvailable = function()
|
||||||
exports.reloadSettings = function reloadSettings() {
|
exports.reloadSettings = function reloadSettings() {
|
||||||
// Discover where the settings file lives
|
// Discover where the settings file lives
|
||||||
var settingsFilename = argv.settings || "settings.json";
|
var settingsFilename = argv.settings || "settings.json";
|
||||||
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
|
|
||||||
|
if (path.resolve(settingsFilename)===settingsFilename)
|
||||||
|
settingsFilename = path.resolve(settingsFilename);
|
||||||
|
else
|
||||||
|
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
|
||||||
|
|
||||||
var settingsStr;
|
var settingsStr;
|
||||||
try{
|
try{
|
||||||
|
|
Loading…
Reference in a new issue