Allow absolute config paths

This commit is contained in:
Ian Forsey
2014-03-21 23:04:27 +00:00
parent 2b2e83992e
commit 6ca5a42936
2 changed files with 2 additions and 2 deletions

View File

@@ -445,7 +445,7 @@ var async = require('async'),
save: function (server_conf, callback) {
var serverConfigPath = path.join(__dirname, '../config.json');
if (nconf.get('config')) {
serverConfigPath = path.join(__dirname, '../', nconf.get('config'));
serverConfigPath = path.resolve(__dirname, '../', nconf.get('config'));
}
fs.writeFile(serverConfigPath, JSON.stringify(server_conf, null, 4), function (err) {