mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 03:06:27 +00:00
Merge pull request #227 from resin-io/fix-offline-mode
bootstrap: if offlineMode is enabled, persist only the uuid
This commit is contained in:
commit
d673015011
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user