aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-11 09:51:08 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:40 +0100
commitae71acca14e9420646ca7655e64eb9adc13e3006 (patch)
tree97e1e4bd94ecfbabc9b99fa5670b72440db82890 /server.ts
parentdb8b2f56c014a3fa207501f74e0bb5088ea41719 (diff)
downloadPeerTube-ae71acca14e9420646ca7655e64eb9adc13e3006.tar.gz
PeerTube-ae71acca14e9420646ca7655e64eb9adc13e3006.tar.zst
PeerTube-ae71acca14e9420646ca7655e64eb9adc13e3006.zip
Check ffmepg version on startup
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 1cc29209e..a8bd25088 100644
--- a/server.ts
+++ b/server.ts
@@ -44,7 +44,7 @@ checkFFmpeg(CONFIG)
44 44
45checkNodeVersion() 45checkNodeVersion()
46 46
47import { checkConfig, checkActivityPubUrls } from './server/initializers/checker-after-init' 47import { checkConfig, checkActivityPubUrls, checkFFmpegVersion } from './server/initializers/checker-after-init'
48 48
49const errorMessage = checkConfig() 49const errorMessage = checkConfig()
50if (errorMessage !== null) { 50if (errorMessage !== null) {
@@ -252,6 +252,9 @@ async function startApplication () {
252 process.exit(-1) 252 process.exit(-1)
253 }) 253 })
254 254
255 checkFFmpegVersion()
256 .catch(err => logger.error('Cannot check ffmpeg version', { err }))
257
255 // Email initialization 258 // Email initialization
256 Emailer.Instance.init() 259 Emailer.Instance.init()
257 260