ServiceManager: add BALENA_DEVICE_NAME_AT_INIT to injected env vars

Change-type: minor
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
Pablo Carranza Velez 2018-10-18 12:06:25 +02:00
parent ed3f5522ae
commit 88b3682d51

View File

@ -113,6 +113,7 @@ module.exports = class ServiceManager extends EventEmitter
# TODO: Don't mutate service like this, use an interface
service.config.environment['RESIN_DEVICE_NAME_AT_INIT'] = deviceName
service.config.environment['BALENA_DEVICE_NAME_AT_INIT'] = deviceName
@logger.logSystemEvent(logTypes.installService, { service })
@reportNewStatus(mockContainerId, service, 'Installing')