mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update Domain.php
This commit is contained in:
parent
54ef686de6
commit
90f87fc12f
1 changed files with 5 additions and 8 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue