aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 30146ea..715108b 100644
--- a/app.js
+++ b/app.js
@@ -13,7 +13,7 @@ if ((process.argv.length >= 3) && (process.argv[2] == "dev")) {
global.__datadir = __dirname + "/tmp/userdata";
global.__logdir = __dirname + "/tmp/logs";
}
-if (!fse.existsSync(global.__datadir)) {
+if (!fse.existsSync(global.__appdir)) {
console.log(`CRITICAL UserDir not found '${userDir}'! Exiting...`);
process.exit(1);
}