merge-requests/4/head
Matthew 2021-04-20 00:13:22 -04:00
parent ad3008b189
commit 94417ece94
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ export default class CSCLI {
public async init() { public async init() {
try { try {
await fs.unlink('/var/run/csd-comm.sock'); await fs.unlink('/run/csd-comm.sock');
} catch { } catch {
// eslint-disable-next-line no-unused-expressions // eslint-disable-next-line no-unused-expressions
null; null;
@ -119,9 +119,9 @@ export default class CSCLI {
this.client.signale.success('[CSD-COMM] Listen - TCP:8124'); this.client.signale.success('[CSD-COMM] Listen - TCP:8124');
}); });
this.servers.unix.listen('/var/run/csd-comm.sock', async () => { this.servers.unix.listen('/var/run/csd-comm.sock', async () => {
await fs.chmod('/var/run/csd-comm.sock', 0o770); await fs.chmod('/run/csd-comm.sock', 0o770);
await fs.chown('/var/run/csd-comm.sock', 0, 115); await fs.chown('/run/csd-comm.sock', 0, 115);
this.client.signale.success('[CSD-COMM] Listen - UNIX:/var/run/csd-comm.sock'); this.client.signale.success('[CSD-COMM] Listen - UNIX:/run/csd-comm.sock');
}); });
} }
} }