Update Domain.php

This commit is contained in:
Bozhidar 2024-04-29 11:55:56 +03:00
parent 54ef686de6
commit 90f87fc12f

View file

@ -298,10 +298,6 @@ class Domain extends Model
}
}
// Reload apache
if ($reloadApache) {
shell_exec('systemctl reload apache2');
}
$catchMainDomain = '';
$domainExp = explode('.', $this->domain);
if (count($domainExp) > 0) {
@ -377,14 +373,15 @@ class Domain extends Model
file_put_contents('/etc/apache2/sites-available/'.$this->domain.'-ssl.conf', $apacheBaseConfigWithSSL);
shell_exec('ln -s /etc/apache2/sites-available/'.$this->domain.'-ssl.conf /etc/apache2/sites-enabled/'.$this->domain.'-ssl.conf');
// Reload apache
if ($reloadApache) {
shell_exec('systemctl reload apache2');
}
}
}
// Reload apache
if ($reloadApache) {
shell_exec('systemctl reload apache2');
}
}
}