Skip to content

Commit 16ee9cf

Browse files
authored
Merge pull request kriskbx#37 from bobvandevijver/patch-1
Fix configuration directory permissions
2 parents 1670b89 + 9c78e89 commit 16ee9cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/file-config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ class fileConfig extends config {
8282
}
8383

8484
assertGlobalConfig() {
85-
if (!fs.existsSync(this.globalDir)) fs.mkdirSync(this.globalDir, '0644', true);
86-
if (!fs.existsSync(this.frameDir)) fs.mkdirSync(this.frameDir, '0744', true);
87-
if (!fs.existsSync(this.cacheDir)) fs.mkdirSync(this.cacheDir, '0744', true);
85+
if (!fs.existsSync(this.globalDir)) fs.mkdirSync(this.globalDir, '0750', true);
86+
if (!fs.existsSync(this.frameDir)) fs.mkdirSync(this.frameDir, '0750', true);
87+
if (!fs.existsSync(this.cacheDir)) fs.mkdirSync(this.cacheDir, '0750', true);
8888
if (!fs.existsSync(this.global)) fs.appendFileSync(this.global, '');
8989
}
9090

@@ -133,4 +133,4 @@ class fileConfig extends config {
133133
}
134134
}
135135

136-
module.exports = fileConfig;
136+
module.exports = fileConfig;

0 commit comments

Comments
 (0)