Skip to content

Commit

Permalink
add a OVERRIDE_CONFIG var
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Mar 8, 2016
1 parent f189f86 commit 2f73073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions connector-setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ exports.run = function (workingPath, callback) {
provisioningTicket, cb);
},
function (cb) {
nconf.save(cb);

if (nconf.get('OVERRIDE_CONFIG') !== false) {
nconf.save(cb);
}
console.log('Connector setup complete.');
}
], function (err) {
Expand Down
3 changes: 2 additions & 1 deletion lib/initConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ nconf.env('||')
GROUP_PROPERTY: 'cn',
GROUPS_CACHE_SECONDS: 600,
ALLOW_PASSWORD_EXPIRED: false,
ALLOW_PASSWORD_CHANGE_REQUIRED: false
ALLOW_PASSWORD_CHANGE_REQUIRED: false,
OVERRIDE_CONFIG: true
});

0 comments on commit 2f73073

Please sign in to comment.