diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-11 09:51:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:40 +0100 |
commit | ae71acca14e9420646ca7655e64eb9adc13e3006 (patch) | |
tree | 97e1e4bd94ecfbabc9b99fa5670b72440db82890 /server.ts | |
parent | db8b2f56c014a3fa207501f74e0bb5088ea41719 (diff) | |
download | PeerTube-ae71acca14e9420646ca7655e64eb9adc13e3006.tar.gz PeerTube-ae71acca14e9420646ca7655e64eb9adc13e3006.tar.zst PeerTube-ae71acca14e9420646ca7655e64eb9adc13e3006.zip |
Check ffmepg version on startup
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -44,7 +44,7 @@ checkFFmpeg(CONFIG) | |||
44 | 44 | ||
45 | checkNodeVersion() | 45 | checkNodeVersion() |
46 | 46 | ||
47 | import { checkConfig, checkActivityPubUrls } from './server/initializers/checker-after-init' | 47 | import { checkConfig, checkActivityPubUrls, checkFFmpegVersion } from './server/initializers/checker-after-init' |
48 | 48 | ||
49 | const errorMessage = checkConfig() | 49 | const errorMessage = checkConfig() |
50 | if (errorMessage !== null) { | 50 | if (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 | ||