aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/initializers/installer.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts
index c18998244..0364bdbe5 100644
--- a/server/initializers/installer.ts
+++ b/server/initializers/installer.ts
@@ -1,5 +1,6 @@
1import { ensureDir, readdir, remove } from 'fs-extra' 1import { ensureDir, readdir, remove } from 'fs-extra'
2import passwordGenerator from 'password-generator' 2import passwordGenerator from 'password-generator'
3import { join } from 'path'
3import { UserRole } from '@shared/models' 4import { UserRole } from '@shared/models'
4import { logger } from '../helpers/logger' 5import { logger } from '../helpers/logger'
5import { buildUser, createApplicationActor, createUserAccountAndChannelAndPlaylist } from '../lib/user' 6import { buildUser, createApplicationActor, createUserAccountAndChannelAndPlaylist } from '../lib/user'
@@ -67,7 +68,7 @@ async function removeDirectoryOrContent (dir: string) {
67 const files = await readdir(dir) 68 const files = await readdir(dir)
68 69
69 for (const file of files) { 70 for (const file of files) {
70 await remove(file) 71 await remove(join(dir, file))
71 } 72 }
72 } 73 }
73} 74}