forked from engineering/cloudservices
Update src/commands/cwg.ts
parent
80c8328e87
commit
b794f482f3
|
@ -134,8 +134,10 @@ export default class CWG extends Command {
|
|||
});
|
||||
}
|
||||
}
|
||||
try {
|
||||
await fs.unlink(`/etc/nginx/sites-available/${domain.domain}`);
|
||||
await fs.unlink(`/etc/nginx/sites-enabled/${domain.domain}`);
|
||||
} catch (e) { this.client.signale.error(e); }
|
||||
await this.client.db.Domain.deleteOne({ domain: domain.domain });
|
||||
await this.client.util.exec('systemctl reload nginx');
|
||||
edit.edit(`***${this.client.stores.emojis.success} Domain ${domain.domain} with port ${domain.port} has been successfully deleted.***`);
|
||||
|
|
Loading…
Reference in New Issue