Restrict access to the home directory by default

Follow up on #165
Closes #194
This commit is contained in:
Maxime Poulin 2016-03-19 16:33:15 -04:00
parent 05be0ff57f
commit 346fb83abe

View file

@ -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")