mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 23:42:54 +00:00
Start the supervisor update check ASAP, it allows us to push (and automatically update to) new supervisor images that fix issues in earlier stages.
This commit is contained in:
parent
5bb552f065
commit
5efcde7922
@ -83,12 +83,6 @@ knex('config').select('value').where(key: 'uuid').then ([ uuid ]) ->
|
|||||||
, 5 * 60 * 1000) # Every 5 mins
|
, 5 * 60 * 1000) # Every 5 mins
|
||||||
application.update()
|
application.update()
|
||||||
|
|
||||||
console.log('Starting periodic check for supervisor updates..')
|
|
||||||
setInterval(->
|
|
||||||
supervisor.update()
|
|
||||||
, 5 * 60 * 1000) # Every 5 mins
|
|
||||||
supervisor.update()
|
|
||||||
|
|
||||||
updateIpAddr = ->
|
updateIpAddr = ->
|
||||||
utils.findIpAddrs().then (ipAddrs) ->
|
utils.findIpAddrs().then (ipAddrs) ->
|
||||||
application.updateDeviceInfo(
|
application.updateDeviceInfo(
|
||||||
|
@ -6,6 +6,14 @@ supervisor = require './supervisor-update'
|
|||||||
# Make sure the supervisor-update has initialised before we continue, as it will handle restarting to add mounts if
|
# Make sure the supervisor-update has initialised before we continue, as it will handle restarting to add mounts if
|
||||||
# necessary.
|
# necessary.
|
||||||
supervisor.initialised.then ->
|
supervisor.initialised.then ->
|
||||||
|
# Start the update checks ASAP, as any later point may fail,
|
||||||
|
# but at least if we're checking for updates we may be able to update to make them work!
|
||||||
|
console.log('Starting periodic check for supervisor updates..')
|
||||||
|
setInterval(->
|
||||||
|
supervisor.update()
|
||||||
|
, 5 * 60 * 1000) # Every 5 mins
|
||||||
|
supervisor.update()
|
||||||
|
|
||||||
knex = require './db'
|
knex = require './db'
|
||||||
|
|
||||||
# Wait for the DB schema to be created
|
# Wait for the DB schema to be created
|
||||||
|
Loading…
Reference in New Issue
Block a user