mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 02:01:35 +00:00
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:
parent
bb6652c52d
commit
6f87b1db18
@ -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 ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user