settings: compute exports.root via AbsolutePaths.findEtherpadRoot()
First steps for fixing #3466.
This commit is contained in:
parent
b1a0e14ee2
commit
1b938a7a40
1 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var absolutePaths = require('./AbsolutePaths');
|
||||
var fs = require("fs");
|
||||
var os = require("os");
|
||||
var path = require('path');
|
||||
|
@ -31,7 +32,8 @@ var suppressDisableMsg = " -- To suppress these warning messages change suppress
|
|||
var _ = require("underscore");
|
||||
|
||||
/* Root path of the installation */
|
||||
exports.root = path.normalize(path.join(npm.dir, ".."));
|
||||
exports.root = absolutePaths.findEtherpadRoot();
|
||||
console.log(`All relative paths will be interpreted relative to the identified Etherpad base dir: ${exports.root}`);
|
||||
|
||||
/**
|
||||
* The app title, visible e.g. in the browser window
|
||||
|
|
Loading…
Reference in a new issue