Merge pull request #117 from maxpoulin64/fix-user-filemode
Remove attempts to set file modes
This commit is contained in:
commit
0f48b11a22
@ -80,8 +80,7 @@ ClientManager.prototype.addUser = function(name, password) {
|
|||||||
mkdirp.sync(path);
|
mkdirp.sync(path);
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path + "/" + name + ".json",
|
path + "/" + name + ".json",
|
||||||
JSON.stringify(user, null, " "),
|
JSON.stringify(user, null, " ")
|
||||||
{mode: "0777"}
|
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw e;
|
throw e;
|
||||||
@ -111,7 +110,6 @@ ClientManager.prototype.updateUser = function(name, opts) {
|
|||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path,
|
path,
|
||||||
JSON.stringify(user, null, " "),
|
JSON.stringify(user, null, " "),
|
||||||
{mode: "0777"},
|
|
||||||
function(err) {
|
function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user