projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase refresh interval to 2 days
[oweals/peertube.git]
/
server
/
initializers
/
installer.ts
diff --git
a/server/initializers/installer.ts
b/server/initializers/installer.ts
index 349d7afb7a7f967798b744034836d1425e082870..cd2c942fd1dc2851136989782f72b0421138004c 100644
(file)
--- a/
server/initializers/installer.ts
+++ b/
server/initializers/installer.ts
@@
-24,7
+24,7
@@
async function installApplication () {
}),
// Directories
}),
// Directories
- removeCacheDirectories()
+ removeCache
AndTmp
Directories()
.then(() => createDirectoriesIfNotExist())
])
} catch (err) {
.then(() => createDirectoriesIfNotExist())
])
} catch (err) {
@@
-41,7
+41,7
@@
export {
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
-function removeCacheDirectories () {
+function removeCache
AndTmp
Directories () {
const cacheDirectories = Object.keys(CACHE)
.map(k => CACHE[k].DIRECTORY)
const cacheDirectories = Object.keys(CACHE)
.map(k => CACHE[k].DIRECTORY)
@@
-53,6
+53,8
@@
function removeCacheDirectories () {
tasks.push(remove(dir))
}
tasks.push(remove(dir))
}
+ tasks.push(remove(CONFIG.STORAGE.TMP_DIR))
+
return Promise.all(tasks)
}
return Promise.all(tasks)
}