mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Restrict access to the home directory by default
Follow up on #165 Closes #194
This commit is contained in:
parent
05be0ff57f
commit
346fb83abe
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,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