Avoid starting apps on startup if device has to reboot due to a configuration change

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2017-08-02 20:07:13 -03:00
parent bb6652c52d
commit 6f87b1db18

View File

@ -860,7 +860,7 @@ application.initialize = ->
.then ->
knex('app').select()
.map (app) ->
unlockAndStart(app) if !application.localMode
unlockAndStart(app) if !application.localMode and !device.shuttingDown
.catch (error) ->
console.error('Error starting apps:', error)
.then ->