summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheogorath2018-09-21 01:23:39 +0200
committerSheogorath2018-10-31 00:37:11 +0100
commit59b3885ddaa97e5a22022587a023d6db3c7caad7 (patch)
tree41775d44320cbef6e337141f2d911a67aec8c7ed
parent637f955bddabf953778d27ffe348683bf1c27653 (diff)
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>
-rw-r--r--lib/config/default.js4
-rw-r--r--tmp/.keep0
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/config/default.js b/lib/config/default.js
index c3ada982..15f11aaa 100644
--- a/lib/config/default.js
+++ b/lib/config/default.js
@@ -1,5 +1,7 @@
'use strict'
+const os = require('os')
+
module.exports = {
domain: '',
urlPath: '',
@@ -39,7 +41,7 @@ module.exports = {
dhParamPath: '',
// other path
viewPath: './public/views',
- tmpPath: './tmp',
+ tmpPath: os.tmpdir(),
defaultNotePath: './public/default.md',
docsPath: './public/docs',
uploadsPath: './public/uploads',
diff --git a/tmp/.keep b/tmp/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/tmp/.keep
+++ /dev/null