summaryrefslogtreecommitdiff
path: root/src/node/utils
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-01-04 14:47:08 +0000
committerJohn McLear <john@mclear.co.uk>2015-01-04 14:47:08 +0000
commit26c839063f2a006cc5ac28266c0a2156924c01c2 (patch)
treed38792a10f20bbadc98ffeb7ef001d7bd216354d /src/node/utils
parente2ea82f8df23f7ba68b5873024ddef178748c8c9 (diff)
downloadetherpad-lite-26c839063f2a006cc5ac28266c0a2156924c01c2.zip
check file system that abiword exists
Diffstat (limited to 'src/node/utils')
-rw-r--r--src/node/utils/Settings.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/node/utils/Settings.js b/src/node/utils/Settings.js
index af7ede81..05ae3bd8 100644
--- a/src/node/utils/Settings.js
+++ b/src/node/utils/Settings.js
@@ -236,6 +236,19 @@ exports.reloadSettings = function reloadSettings() {
process.env['DEBUG'] = 'socket.io:' + exports.loglevel; // Used by SocketIO for Debug
log4js.replaceConsole();
+ if(exports.abiword){
+ // Check abiword actually exists
+ if(exports.abiword != null)
+ {
+ fs.exists(exports.abiword, function(exists) {
+ if (!exists) {
+ console.error("Abiword does not exist at this path, check your settings file");
+ exports.abiword = null;
+ }
+ });
+ }
+ }
+
if(!exports.sessionKey){ // If the secretKey isn't set we also create yet another unique value here
exports.sessionKey = randomString(32);
console.warn("You need to set a sessionKey value in settings.json, this will allow your users to reconnect to your Etherpad Instance if your instance restarts");