diff options
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r-- | server/initializers/installer.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index 7d5919459..b02be9567 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -1,6 +1,8 @@ | |||
1 | import { ensureDir, readdir, remove } from 'fs-extra' | 1 | import { ensureDir, readdir, remove } from 'fs-extra' |
2 | import passwordGenerator from 'password-generator' | 2 | import passwordGenerator from 'password-generator' |
3 | import { join } from 'path' | 3 | import { join } from 'path' |
4 | import { isTestOrDevInstance } from '@server/helpers/core-utils' | ||
5 | import { getNodeABIVersion } from '@server/helpers/version' | ||
4 | import { UserRole } from '@shared/models' | 6 | import { UserRole } from '@shared/models' |
5 | import { logger } from '../helpers/logger' | 7 | import { logger } from '../helpers/logger' |
6 | import { buildUser, createApplicationActor, createUserAccountAndChannelAndPlaylist } from '../lib/user' | 8 | import { buildUser, createApplicationActor, createUserAccountAndChannelAndPlaylist } from '../lib/user' |
@@ -10,7 +12,6 @@ import { applicationExist, clientsExist, usersExist } from './checker-after-init | |||
10 | import { CONFIG } from './config' | 12 | import { CONFIG } from './config' |
11 | import { FILES_CACHE, HLS_STREAMING_PLAYLIST_DIRECTORY, LAST_MIGRATION_VERSION, RESUMABLE_UPLOAD_DIRECTORY } from './constants' | 13 | import { FILES_CACHE, HLS_STREAMING_PLAYLIST_DIRECTORY, LAST_MIGRATION_VERSION, RESUMABLE_UPLOAD_DIRECTORY } from './constants' |
12 | import { sequelizeTypescript } from './database' | 14 | import { sequelizeTypescript } from './database' |
13 | import { isTestOrDevInstance } from '@server/helpers/core-utils' | ||
14 | 15 | ||
15 | async function installApplication () { | 16 | async function installApplication () { |
16 | try { | 17 | try { |
@@ -175,7 +176,9 @@ async function createApplicationIfNotExist () { | |||
175 | logger.info('Creating application account.') | 176 | logger.info('Creating application account.') |
176 | 177 | ||
177 | const application = await ApplicationModel.create({ | 178 | const application = await ApplicationModel.create({ |
178 | migrationVersion: LAST_MIGRATION_VERSION | 179 | migrationVersion: LAST_MIGRATION_VERSION, |
180 | nodeVersion: process.version, | ||
181 | nodeABIVersion: getNodeABIVersion() | ||
179 | }) | 182 | }) |
180 | 183 | ||
181 | return createApplicationActor(application.id) | 184 | return createApplicationActor(application.id) |