mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-06 10:58:14 +00:00
Merge pull request #197 from resin-io/196-fix-preloading
Fix preloaded apps by passing appId to extendEnvVars
This commit is contained in:
commit
a9f24722c1
@ -1,3 +1,5 @@
|
|||||||
|
* Fix preloaded apps by passing appId to extendEnvVars
|
||||||
|
|
||||||
# v1.12.0
|
# v1.12.0
|
||||||
|
|
||||||
* Add endpoints for docker-compose up and down [Pablo]
|
* Add endpoints for docker-compose up and down [Pablo]
|
||||||
|
@ -20,7 +20,7 @@ loadPreloadedApps = ->
|
|||||||
fs.readFileAsync(appsPath, 'utf8')
|
fs.readFileAsync(appsPath, 'utf8')
|
||||||
.then(JSON.parse)
|
.then(JSON.parse)
|
||||||
.map (app) ->
|
.map (app) ->
|
||||||
utils.extendEnvVars(app.env, userConfig.uuid)
|
utils.extendEnvVars(app.env, userConfig.uuid, app.appId)
|
||||||
.then (extendedEnv) ->
|
.then (extendedEnv) ->
|
||||||
app.env = JSON.stringify(extendedEnv)
|
app.env = JSON.stringify(extendedEnv)
|
||||||
knex('app').insert(app)
|
knex('app').insert(app)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user