aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/initializers/installer.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts
index 0364bdbe5..7d5919459 100644
--- a/server/initializers/installer.ts
+++ b/server/initializers/installer.ts
@@ -10,6 +10,7 @@ import { applicationExist, clientsExist, usersExist } from './checker-after-init
10import { CONFIG } from './config' 10import { CONFIG } from './config'
11import { FILES_CACHE, HLS_STREAMING_PLAYLIST_DIRECTORY, LAST_MIGRATION_VERSION, RESUMABLE_UPLOAD_DIRECTORY } from './constants' 11import { FILES_CACHE, HLS_STREAMING_PLAYLIST_DIRECTORY, LAST_MIGRATION_VERSION, RESUMABLE_UPLOAD_DIRECTORY } from './constants'
12import { sequelizeTypescript } from './database' 12import { sequelizeTypescript } from './database'
13import { isTestOrDevInstance } from '@server/helpers/core-utils'
13 14
14async function installApplication () { 15async function installApplication () {
15 try { 16 try {
@@ -135,8 +136,8 @@ async function createOAuthAdminIfNotExist () {
135 let validatePassword = true 136 let validatePassword = true
136 let password = '' 137 let password = ''
137 138
138 // Do not generate a random password for tests 139 // Do not generate a random password for test and dev environments
139 if (process.env.NODE_ENV === 'test') { 140 if (isTestOrDevInstance()) {
140 password = 'test' 141 password = 'test'
141 142
142 if (process.env.NODE_APP_INSTANCE) { 143 if (process.env.NODE_APP_INSTANCE) {