mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(config) set file mode permissions to readable only by current user (#61)
This commit is contained in:
parent
255621073d
commit
fa619b59d6
2 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,7 @@
|
|||
"try-catch": "^2.0.0",
|
||||
"tryrequire": "^2.0.1",
|
||||
"wraptile": "^2.0.0",
|
||||
"writejson": "^1.1.0"
|
||||
"writejson": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0-beta.49",
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ function manage(key, value) {
|
|||
}
|
||||
|
||||
function _save(callback) {
|
||||
writejson(ConfigHome, config, callback);
|
||||
writejson(ConfigHome, config, {mode: 0o600}, callback);
|
||||
}
|
||||
|
||||
function listen(sock, auth) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue