Add warning if videos directory is the same than redundancy
authorChocobozzz <me@florianbigard.com>
Tue, 10 Dec 2019 13:31:08 +0000 (14:31 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 10 Dec 2019 13:31:08 +0000 (14:31 +0100)
server/initializers/checker-after-init.ts

index 9fefba7691a276a39fe48e7fece9ba4d73764a45..44efd346ccb9187efd4dceb82b676a167f023adc 100644 (file)
@@ -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
 }