Use OS based tmp dir

We should use the official OS temp directory instead of an own one, to
not run into conflicts. Also various dependencies already use the OS
temp directory, which makes it pointless to use a different for our
internal purposes then. This commit provides the changes needed to use
the OS tmp directory by default.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2018-09-21 01:23:39 +02:00
parent 637f955bdd
commit 59b3885dda
No known key found for this signature in database
GPG Key ID: 1F05CC3635CDDFFD
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
'use strict' 'use strict'
const os = require('os')
module.exports = { module.exports = {
domain: '', domain: '',
urlPath: '', urlPath: '',
@ -39,7 +41,7 @@ module.exports = {
dhParamPath: '', dhParamPath: '',
// other path // other path
viewPath: './public/views', viewPath: './public/views',
tmpPath: './tmp', tmpPath: os.tmpdir(),
defaultNotePath: './public/default.md', defaultNotePath: './public/default.md',
docsPath: './public/docs', docsPath: './public/docs',
uploadsPath: './public/uploads', uploadsPath: './public/uploads',

View File