Update ModelDomainDeletingListener.php
This commit is contained in:
parent
025c87d844
commit
eb11cc5c0a
1 changed files with 0 additions and 2 deletions
|
@ -23,7 +23,6 @@ class ModelDomainDeletingListener
|
||||||
*/
|
*/
|
||||||
public function handle(ModelDomainDeleting $event): void
|
public function handle(ModelDomainDeleting $event): void
|
||||||
{
|
{
|
||||||
|
|
||||||
$domainRoot = '/home/'.$event->model->domain_username.'/domains/'.$event->model->domain;
|
$domainRoot = '/home/'.$event->model->domain_username.'/domains/'.$event->model->domain;
|
||||||
|
|
||||||
ShellApi::exec('rm -rf ' . $domainRoot);
|
ShellApi::exec('rm -rf ' . $domainRoot);
|
||||||
|
@ -31,6 +30,5 @@ class ModelDomainDeletingListener
|
||||||
$deleteApacheWebsite = new ApacheWebsiteDelete();
|
$deleteApacheWebsite = new ApacheWebsiteDelete();
|
||||||
$deleteApacheWebsite->setDomain($event->model->domain);
|
$deleteApacheWebsite->setDomain($event->model->domain);
|
||||||
$deleteApacheWebsite->handle();
|
$deleteApacheWebsite->handle();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue