aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/installer.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/initializers/installer.js b/server/initializers/installer.js
index 014efbcb7..490084104 100644
--- a/server/initializers/installer.js
+++ b/server/initializers/installer.js
@@ -1,11 +1,12 @@
1'use strict' 1'use strict'
2 2
3const async = require('async')
4const config = require('config') 3const config = require('config')
4const each = require('async/each')
5const mkdirp = require('mkdirp') 5const mkdirp = require('mkdirp')
6const mongoose = require('mongoose') 6const mongoose = require('mongoose')
7const passwordGenerator = require('password-generator') 7const passwordGenerator = require('password-generator')
8const path = require('path') 8const path = require('path')
9const series = require('async/series')
9 10
10const checker = require('./checker') 11const checker = require('./checker')
11const logger = require('../helpers/logger') 12const logger = require('../helpers/logger')
@@ -19,7 +20,7 @@ const installer = {
19} 20}
20 21
21function installApplication (callback) { 22function installApplication (callback) {
22 async.series([ 23 series([
23 function createDirectories (callbackAsync) { 24 function createDirectories (callbackAsync) {
24 createDirectoriesIfNotExist(callbackAsync) 25 createDirectoriesIfNotExist(callbackAsync)
25 }, 26 },
@@ -47,7 +48,7 @@ module.exports = installer
47function createDirectoriesIfNotExist (callback) { 48function createDirectoriesIfNotExist (callback) {
48 const storages = config.get('storage') 49 const storages = config.get('storage')
49 50
50 async.each(Object.keys(storages), function (key, callbackEach) { 51 each(Object.keys(storages), function (key, callbackEach) {
51 const dir = storages[key] 52 const dir = storages[key]
52 mkdirp(path.join(__dirname, '..', '..', dir), callbackEach) 53 mkdirp(path.join(__dirname, '..', '..', dir), callbackEach)
53 }, callback) 54 }, callback)