aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker-after-init.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-10 14:31:08 +0100
committerChocobozzz <me@florianbigard.com>2019-12-10 14:31:08 +0100
commit2034c3aaa06e4880db80c8990bd793a20d1b7af3 (patch)
tree6ffc1114dcf1a70696ba399a68a457274790f48f /server/initializers/checker-after-init.ts
parentf37db8966d60403c7483d4597007830ee3d05ca9 (diff)
downloadPeerTube-2034c3aaa06e4880db80c8990bd793a20d1b7af3.tar.gz
PeerTube-2034c3aaa06e4880db80c8990bd793a20d1b7af3.tar.zst
PeerTube-2034c3aaa06e4880db80c8990bd793a20d1b7af3.zip
Add warning if videos directory is the same than redundancy
Diffstat (limited to 'server/initializers/checker-after-init.ts')
-rw-r--r--server/initializers/checker-after-init.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts
index 9fefba769..44efd346c 100644
--- a/server/initializers/checker-after-init.ts
+++ b/server/initializers/checker-after-init.ts
@@ -108,6 +108,10 @@ function checkConfig () {
108 } 108 }
109 } 109 }
110 110
111 if (CONFIG.STORAGE.VIDEOS_DIR === CONFIG.STORAGE.REDUNDANCY_DIR) {
112 logger.warn('Redundancy directory should be different than the videos folder.')
113 }
114
111 return null 115 return null
112} 116}
113 117