Change path of autoprovision.conf since /root is not readable

This commit is contained in:
Girish Ramakrishnan
2017-11-28 01:23:10 -08:00
parent 8701b36123
commit d001647704
3 changed files with 4 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ function onActivated(callback) {
function autoprovision(callback) {
assert.strictEqual(typeof callback, 'function');
const confJson = safe.fs.readFileSync(constants.AUTO_PROVISION_FILE, 'utf8');
const confJson = safe.fs.readFileSync(paths.AUTO_PROVISION_FILE, 'utf8');
if (!confJson) return callback();
const conf = safe.JSON.parse(confJson);