This commit is contained in:
Bozhidar 2024-09-10 16:52:01 +03:00
parent 3eaf9fd96b
commit 9ecdde0957
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ class RunDomainRepair extends Command
*/
public function handle()
{
$apacheBuild = new ApacheBuild();
$apacheBuild = new ApacheBuild(true);
$apacheBuild->handle();
}
}

View file

@ -32,7 +32,7 @@ class ApacheBuild implements ShouldQueue
$getAllDomains = Domain::whereNot('status','<=>', 'broken')->get();
$virtualHosts = [];
foreach ($getAllDomains as $domain) {
$virtualHostSettings = $domain->configureVirtualHost();
$virtualHostSettings = $domain->configureVirtualHost($this->fixPermissions);
if (isset($virtualHostSettings['virtualHostSettings'])) {
$virtualHosts[] = $virtualHostSettings['virtualHostSettings'];
}