Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix configuration directory permissions
  • Loading branch information
bobvandevijver authored Dec 12, 2017
commit 9c78e89c51f905be09c3934bf08936d9a717ae99
8 changes: 4 additions & 4 deletions src/include/file-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ class fileConfig extends config {
}

assertGlobalConfig() {
if (!fs.existsSync(this.globalDir)) fs.mkdirSync(this.globalDir, '0644', true);
if (!fs.existsSync(this.frameDir)) fs.mkdirSync(this.frameDir, '0744', true);
if (!fs.existsSync(this.cacheDir)) fs.mkdirSync(this.cacheDir, '0744', true);
if (!fs.existsSync(this.globalDir)) fs.mkdirSync(this.globalDir, '0750', true);
if (!fs.existsSync(this.frameDir)) fs.mkdirSync(this.frameDir, '0750', true);
if (!fs.existsSync(this.cacheDir)) fs.mkdirSync(this.cacheDir, '0750', true);
if (!fs.existsSync(this.global)) fs.appendFileSync(this.global, '');
}

Expand Down Expand Up @@ -133,4 +133,4 @@ class fileConfig extends config {
}
}

module.exports = fileConfig;
module.exports = fileConfig;