set socket mode

This commit is contained in:
Evert Prants 2019-02-05 19:07:34 +02:00
parent 6067b47b10
commit 47b5f3127a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -55,6 +55,11 @@ async function init () {
app.listen(sock, function () {
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