mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-09 04:31:25 +00:00
commit
6fbf95e93f
@ -45,8 +45,8 @@ export class Supervisor {
|
|||||||
|
|
||||||
initializeContractRequirements({
|
initializeContractRequirements({
|
||||||
supervisorVersion: version,
|
supervisorVersion: version,
|
||||||
deviceType: conf.deviceType,
|
deviceType: await config.get('deviceType'),
|
||||||
deviceArch: conf.deviceArch,
|
deviceArch: await config.get('deviceArch'),
|
||||||
l4tVersion: await osRelease.getL4tVersion(),
|
l4tVersion: await osRelease.getL4tVersion(),
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -58,8 +58,9 @@ export class Supervisor {
|
|||||||
|
|
||||||
await deviceState.initialized();
|
await deviceState.initialized();
|
||||||
|
|
||||||
|
const unmanaged = await config.get('unmanaged');
|
||||||
logger.logSystemMessage('Supervisor starting', {}, 'Supervisor start');
|
logger.logSystemMessage('Supervisor starting', {}, 'Supervisor start');
|
||||||
if (conf.legacyAppsPresent && !conf.unmanaged) {
|
if (conf.legacyAppsPresent && !unmanaged) {
|
||||||
log.info('Legacy app detected, running migration');
|
log.info('Legacy app detected, running migration');
|
||||||
await normaliseLegacyDatabase();
|
await normaliseLegacyDatabase();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user