mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-11 12:01:40 +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
|
bootstrap.done
|
||||||
.then ->
|
.then ->
|
||||||
|
Promise.join(
|
||||||
device.getOSVersion()
|
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.
|
# Let API know what version we are, and our api connection info.
|
||||||
console.log('Updating supervisor version and api info')
|
console.log('Updating supervisor version and api info')
|
||||||
device.updateState(
|
device.updateState(
|
||||||
@ -46,6 +49,7 @@ knex.init.then ->
|
|||||||
download_progress: null
|
download_progress: null
|
||||||
logs_channel: logsChannel
|
logs_channel: logsChannel
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
console.log('Starting Apps..')
|
console.log('Starting Apps..')
|
||||||
application.initialize()
|
application.initialize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user