aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-18 17:17:52 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-18 17:17:52 +0200
commit1a42c9e2c0fb64cdbebd81b311736e752f591e0a (patch)
treee893324d730878257491428ffca634a92f1eea05 /server/initializers
parentd56ec0d4129160a6e3b51ace3766bb325db1f101 (diff)
downloadPeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.gz
PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.zst
PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.zip
Server: udpate async to 2.0.0
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)