Pass the device uuid as an env var

This commit is contained in:
Petros Angelatos 2014-06-16 16:32:53 +01:00 committed by Pablo Carranza Vélez
parent 04ca3b3042
commit d47ba654b7

View File

@ -147,7 +147,9 @@ exports.update = ->
console.log("Remote apps")
remoteApps = _.filter(remoteApps, 'commit')
remoteApps = _.map remoteApps, (app) ->
env = {}
env =
RESIN_DEVICE_UUID: uuid
if app.environment_variable?
for envVar in app.environment_variable
env[envVar.name] = envVar.value