diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/installer.js | 7 |
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 | ||
3 | const async = require('async') | ||
4 | const config = require('config') | 3 | const config = require('config') |
4 | const each = require('async/each') | ||
5 | const mkdirp = require('mkdirp') | 5 | const mkdirp = require('mkdirp') |
6 | const mongoose = require('mongoose') | 6 | const mongoose = require('mongoose') |
7 | const passwordGenerator = require('password-generator') | 7 | const passwordGenerator = require('password-generator') |
8 | const path = require('path') | 8 | const path = require('path') |
9 | const series = require('async/series') | ||
9 | 10 | ||
10 | const checker = require('./checker') | 11 | const checker = require('./checker') |
11 | const logger = require('../helpers/logger') | 12 | const logger = require('../helpers/logger') |
@@ -19,7 +20,7 @@ const installer = { | |||
19 | } | 20 | } |
20 | 21 | ||
21 | function installApplication (callback) { | 22 | function 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 | |||
47 | function createDirectoriesIfNotExist (callback) { | 48 | function 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) |