Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add warning if videos directory is the same than redundancy

Chocobozzz2034c3aaa06e
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts
index 9fefba7691..44efd346cc 100644
--- a/server/initializers/checker-after-init.ts
+++ b/server/initializers/checker-after-init.ts
@@ -108,6 +108,10 @@ function checkConfig () {
}
}
+ if (CONFIG.STORAGE.VIDEOS_DIR === CONFIG.STORAGE.REDUNDANCY_DIR) {
+ logger.warn('Redundancy directory should be different than the videos folder.')
+ }
+
return null
}