forked from engineering/cloudservices
fix
parent
ad3008b189
commit
94417ece94
|
@ -104,7 +104,7 @@ export default class CSCLI {
|
|||
|
||||
public async init() {
|
||||
try {
|
||||
await fs.unlink('/var/run/csd-comm.sock');
|
||||
await fs.unlink('/run/csd-comm.sock');
|
||||
} catch {
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
null;
|
||||
|
@ -119,9 +119,9 @@ export default class CSCLI {
|
|||
this.client.signale.success('[CSD-COMM] Listen - TCP:8124');
|
||||
});
|
||||
this.servers.unix.listen('/var/run/csd-comm.sock', async () => {
|
||||
await fs.chmod('/var/run/csd-comm.sock', 0o770);
|
||||
await fs.chown('/var/run/csd-comm.sock', 0, 115);
|
||||
this.client.signale.success('[CSD-COMM] Listen - UNIX:/var/run/csd-comm.sock');
|
||||
await fs.chmod('/run/csd-comm.sock', 0o770);
|
||||
await fs.chown('/run/csd-comm.sock', 0, 115);
|
||||
this.client.signale.success('[CSD-COMM] Listen - UNIX:/run/csd-comm.sock');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue