Update ModelDomainDeletingListener.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-06 11:59:15 +03:00
parent 025c87d844
commit eb11cc5c0a

View file

@ -23,7 +23,6 @@ class ModelDomainDeletingListener
*/
public function handle(ModelDomainDeleting $event): void
{
$domainRoot = '/home/'.$event->model->domain_username.'/domains/'.$event->model->domain;
ShellApi::exec('rm -rf ' . $domainRoot);
@ -31,6 +30,5 @@ class ModelDomainDeletingListener
$deleteApacheWebsite = new ApacheWebsiteDelete();
$deleteApacheWebsite->setDomain($event->model->domain);
$deleteApacheWebsite->handle();
}
}