diff --git a/server/src/domain/server-info/server-info.service.ts b/server/src/domain/server-info/server-info.service.ts index 697e461de5..c16c62fb23 100644 --- a/server/src/domain/server-info/server-info.service.ts +++ b/server/src/domain/server-info/server-info.service.ts @@ -45,6 +45,15 @@ export class ServerInfoService { this.communicationRepository.on('connect', (userId) => this.handleConnect(userId)); } + async init(): Promise { + await this.handleVersionCheck(); + + const featureFlags = await this.getFeatures(); + if (featureFlags.configFile) { + await this.setAdminOnboarding(); + } + } + async getInfo(): Promise { const libraryBase = StorageCore.getBaseFolder(StorageFolder.LIBRARY); const diskInfo = await this.storageRepository.checkDiskUsage(libraryBase); diff --git a/server/src/immich/app.service.ts b/server/src/immich/app.service.ts index bbd086ba8a..56bf649164 100644 --- a/server/src/immich/app.service.ts +++ b/server/src/immich/app.service.ts @@ -67,7 +67,7 @@ export class AppService { await this.configService.init(); this.storageService.init(); await this.libraryService.init(); - await this.serverService.handleVersionCheck(); + await this.serverService.init(); this.logger.log(`Feature Flags: ${JSON.stringify(await this.serverService.getFeatures(), null, 2)}`); }