mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-03 00:00:51 +00:00
Merge pull request #407 from resin-io/report-os-variant
Report OS variant to the API together with the OS version
This commit is contained in:
commit
64fc60bf77
@ -32,8 +32,11 @@ knex.init.then ->
|
||||
|
||||
bootstrap.done
|
||||
.then ->
|
||||
Promise.join(
|
||||
device.getOSVersion()
|
||||
.then (osVersion) ->
|
||||
device.getOSVariant()
|
||||
(osVersion, osVariant) ->
|
||||
osVersion += " (#{osVariant})" if osVersion? and osVariant?
|
||||
# Let API know what version we are, and our api connection info.
|
||||
console.log('Updating supervisor version and api info')
|
||||
device.updateState(
|
||||
@ -46,6 +49,7 @@ knex.init.then ->
|
||||
download_progress: null
|
||||
logs_channel: logsChannel
|
||||
)
|
||||
)
|
||||
|
||||
console.log('Starting Apps..')
|
||||
application.initialize()
|
||||
|
Loading…
x
Reference in New Issue
Block a user