Restrict access to the home directory by default
Follow up on #165 Closes #194
This commit is contained in:
parent
05be0ff57f
commit
346fb83abe
@ -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 New Issue
Block a user