Skip to content

Commit c08af3a

Browse files
committed
chmode config-user
1 parent 4b6a51e commit c08af3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"private": true,
66
"scripts": {
7-
"kill": "sudo kill -9 $(sudo lsof -t -i:3030) && sudo kill -9 $(sudo lsof -t -i:3031)",
7+
"kill": "pids=$(lsof -t -i:3030 -i:3031) [ -n \"$pids\" ] && kill $pids",
88
"dev": "nodemon ./server",
99
"start": "sudo node ./server",
1010
"precommit": "lint-staged",

routes/samples/settings-post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ router.post('/', async (req, res) => {
4040
await fs.writeFile(
4141
configUserPath,
4242
JSON.stringify(configUser, null, ' '),
43-
'utf-8'
43+
{ encoding: 'utf-8', mode: 0o664 }
4444
);
4545

4646
req.session.preJS = req.body.preJS;

0 commit comments

Comments
 (0)