mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add warning if one of the storage directory is in the peertube
production directory Because admins could loose these directories on peertube upgrade
This commit is contained in:
parent
a893681058
commit
00f9e41ebf
2 changed files with 19 additions and 1 deletions
|
@ -64,6 +64,10 @@ function isTestInstance () {
|
|||
return process.env.NODE_ENV === 'test'
|
||||
}
|
||||
|
||||
function isProdInstance () {
|
||||
return process.env.NODE_ENV === 'production'
|
||||
}
|
||||
|
||||
function root () {
|
||||
// We are in /helpers/utils.js
|
||||
const paths = [ __dirname, '..', '..' ]
|
||||
|
@ -179,6 +183,8 @@ const createTorrentPromise = promisify2<string, any, any>(createTorrent)
|
|||
|
||||
export {
|
||||
isTestInstance,
|
||||
isProdInstance,
|
||||
|
||||
root,
|
||||
escapeHTML,
|
||||
pageToStartAndCount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue