Merge pull request #227 from resin-io/fix-offline-mode

bootstrap: if offlineMode is enabled, persist only the uuid
This commit is contained in:
Petros Angelatos 2016-08-02 23:48:58 -07:00 committed by GitHub
commit d673015011

View File

@ -111,7 +111,10 @@ bootstrapper.startBootstrapping = ->
readConfigAndEnsureUUID() readConfigAndEnsureUUID()
.tap -> .tap ->
loadPreloadedApps() loadPreloadedApps()
.tap -> .tap (uuid) ->
bootstrapOrRetry() if bootstrapper.offlineMode
return knex('config').insert({ key: 'uuid', value: uuid })
else
return bootstrapOrRetry()
module.exports = bootstrapper module.exports = bootstrapper