From 3c43265878892adab985f6fc9b1b4270ae27aaa2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 27 Aug 2018 22:59:50 -0400 Subject: [PATCH] change to 700 perms --- src/misc/nodeUtils.ts | 2 +- src/services/lowdbStorage.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/nodeUtils.ts b/src/misc/nodeUtils.ts index d42db57a82..ee12c74459 100644 --- a/src/misc/nodeUtils.ts +++ b/src/misc/nodeUtils.ts @@ -2,7 +2,7 @@ import * as fs from 'fs'; import * as path from 'path'; export class NodeUtils { - static mkdirpSync(targetDir: string, mode = '755', relative = false, relativeDir: string = null) { + static mkdirpSync(targetDir: string, mode = '700', relative = false, relativeDir: string = null) { const initialDir = path.isAbsolute(targetDir) ? path.sep : ''; const baseDir = relative ? (relativeDir != null ? relativeDir : __dirname) : '.'; targetDir.split(path.sep).reduce((parentDir, childDir) => { diff --git a/src/services/lowdbStorage.service.ts b/src/services/lowdbStorage.service.ts index 1f6861a5af..581c48291a 100644 --- a/src/services/lowdbStorage.service.ts +++ b/src/services/lowdbStorage.service.ts @@ -18,7 +18,7 @@ export class LowdbStorageService implements StorageService { let adapter: lowdb.AdapterSync; if (Utils.isNode && dir != null) { if (!fs.existsSync(dir)) { - NodeUtils.mkdirpSync(dir, '755'); + NodeUtils.mkdirpSync(dir, '700'); } const p = path.join(dir, 'data.json'); adapter = new FileSync(p);