set socket mode
This commit is contained in:
parent
6067b47b10
commit
47b5f3127a
@ -55,6 +55,11 @@ async function init () {
|
|||||||
app.listen(sock, function () {
|
app.listen(sock, function () {
|
||||||
console.log('Started server on', sock)
|
console.log('Started server on', sock)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
try {
|
||||||
|
await fsPromises.access(sock, fs.constants.F_OK)
|
||||||
|
await fsPromises.chmod(sock, 0o777)
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = init
|
module.exports = init
|
||||||
|
Loading…
Reference in New Issue
Block a user