mirror of
https://github.com/thelounge/thelounge
synced 2024-11-14 08:17:16 +00:00
Merge pull request #205 from maxpoulin64/I-194
Restrict access to the home directory by default
This commit is contained in:
commit
1150d646cb
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ if (program.home) {
|
|||
|
||||
var config = Helper.HOME + "/config.js";
|
||||
if (!fs.existsSync(config)) {
|
||||
mkdirp.sync(Helper.HOME);
|
||||
mkdirp.sync(Helper.HOME, {mode: "0700"});
|
||||
fs.writeFileSync(
|
||||
config,
|
||||
fs.readFileSync(__dirname + "/../../defaults/config.js")
|
||||
|
|
Loading…
Reference in a new issue