projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f37db89
)
Add warning if videos directory is the same than redundancy
author
Chocobozzz
<me@florianbigard.com>
Tue, 10 Dec 2019 13:31:08 +0000
(14:31 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 10 Dec 2019 13:31:08 +0000
(14:31 +0100)
server/initializers/checker-after-init.ts
patch
|
blob
|
history
diff --git
a/server/initializers/checker-after-init.ts
b/server/initializers/checker-after-init.ts
index 9fefba7691a276a39fe48e7fece9ba4d73764a45..44efd346ccb9187efd4dceb82b676a167f023adc 100644
(file)
--- 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
}