diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-18 17:17:52 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-18 17:17:52 +0200 |
commit | 1a42c9e2c0fb64cdbebd81b311736e752f591e0a (patch) | |
tree | e893324d730878257491428ffca634a92f1eea05 /server/initializers/installer.js | |
parent | d56ec0d4129160a6e3b51ace3766bb325db1f101 (diff) | |
download | PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.gz PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.zst PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.zip |
Server: udpate async to 2.0.0
Diffstat (limited to 'server/initializers/installer.js')
-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) |