diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/installer.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index 3f4c4dfbb..865495722 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -2,10 +2,9 @@ import * as passwordGenerator from 'password-generator' | |||
2 | import { UserRole } from '../../shared' | 2 | import { UserRole } from '../../shared' |
3 | import { logger, mkdirpPromise, rimrafPromise } from '../helpers' | 3 | import { logger, mkdirpPromise, rimrafPromise } from '../helpers' |
4 | import { createUserAccountAndChannel } from '../lib' | 4 | import { createUserAccountAndChannel } from '../lib' |
5 | import { createLocalAccount } from '../lib/user' | 5 | import { createLocalAccountWithoutKeys } from '../lib/user' |
6 | import { applicationExist, clientsExist, usersExist } from './checker' | 6 | import { applicationExist, clientsExist, usersExist } from './checker' |
7 | import { CACHE, CONFIG, LAST_MIGRATION_VERSION, SERVER_ACCOUNT_NAME } from './constants' | 7 | import { CACHE, CONFIG, LAST_MIGRATION_VERSION, SERVER_ACCOUNT_NAME } from './constants' |
8 | |||
9 | import { database as db } from './database' | 8 | import { database as db } from './database' |
10 | 9 | ||
11 | async function installApplication () { | 10 | async function installApplication () { |
@@ -136,5 +135,6 @@ async function createApplicationIfNotExist () { | |||
136 | const applicationInstance = await db.Application.create({ migrationVersion: LAST_MIGRATION_VERSION }) | 135 | const applicationInstance = await db.Application.create({ migrationVersion: LAST_MIGRATION_VERSION }) |
137 | 136 | ||
138 | logger.info('Creating application account.') | 137 | logger.info('Creating application account.') |
139 | return createLocalAccount(SERVER_ACCOUNT_NAME, null, applicationInstance.id, undefined) | 138 | |
139 | return createLocalAccountWithoutKeys(SERVER_ACCOUNT_NAME, null, applicationInstance.id, undefined) | ||
140 | } | 140 | } |