Skip to content

Commit

Permalink
Merge pull request #2365 from balena-os/revert-2364
Browse files Browse the repository at this point in the history
Revert PR #2364
  • Loading branch information
cywang117 authored Aug 23, 2024
2 parents 2b03771 + 3cebfa9 commit 6fbf95e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/supervisor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export class Supervisor {

initializeContractRequirements({
supervisorVersion: version,
deviceType: conf.deviceType,
deviceArch: conf.deviceArch,
deviceType: await config.get('deviceType'),
deviceArch: await config.get('deviceArch'),
l4tVersion: await osRelease.getL4tVersion(),
});

Expand All @@ -58,8 +58,9 @@ export class Supervisor {

await deviceState.initialized();

const unmanaged = await config.get('unmanaged');
logger.logSystemMessage('Supervisor starting', {}, 'Supervisor start');
if (conf.legacyAppsPresent && !conf.unmanaged) {
if (conf.legacyAppsPresent && !unmanaged) {
log.info('Legacy app detected, running migration');
await normaliseLegacyDatabase();
}
Expand Down

0 comments on commit 6fbf95e

Please sign in to comment.