Commit da834bd2 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Fix bad replace

parent 5e2e3e10
......@@ -23,7 +23,7 @@ const ldapClient = ldap.createClient({
reconnect: true /* undocumented option to automatically reconnect on connection failure : https://github.com/joyent/node-ldapjs/issues/318#issuecomment-165769581 */
});
const LOOL_CONFIG_FILE = process.env.CLOUDRON_CLOUDRON ? '/app/data/loolwsd.xml' : path.resolve(__dirname, 'loolwsd_test.xml');
const LOOL_CONFIG_FILE = process.env.CLOUDRON ? '/app/data/loolwsd.xml' : path.resolve(__dirname, 'loolwsd_test.xml');
function isAuthenticated(req, res, next) {
if (req.session && req.session.user) return next();
......@@ -129,7 +129,7 @@ function setSettings(req, res, next) {
fs.writeFile(LOOL_CONFIG_FILE, xmlButPrettier(xml2json.toXml(JSON.stringify(settings)), { textNodesOnSameLine: true }), function (error) {
if (error) return next(new HttpError(500, error));
if (process.env.CLOUDRON_CLOUDRON) {
if (process.env.CLOUDRON) {
console.log('Restarting lool process');
exec('supervisorctl restart lool');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment