fix
parent
ad3008b189
commit
94417ece94
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue