mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update ApacheWebsiteDelete.php
This commit is contained in:
parent
e79dd827f3
commit
663ad25541
1 changed files with 4 additions and 4 deletions
|
@ -16,17 +16,17 @@ class ApacheWebsiteDelete
|
|||
public function handle()
|
||||
{
|
||||
$apacheConf = '/etc/apache2/sites-available/'.$this->domain.'.conf';
|
||||
ShellApi::exec('rm -rf '.$apacheConf);
|
||||
shell_exec('rm -rf '.$apacheConf);
|
||||
|
||||
$apacheConfEnabled = '/etc/apache2/sites-enabled/'.$this->domain.'.conf';
|
||||
ShellApi::exec('rm -rf '.$apacheConfEnabled);
|
||||
shell_exec('rm -rf '.$apacheConfEnabled);
|
||||
|
||||
// SSL
|
||||
$apacheSSLConf = '/etc/apache2/sites-available/'.$this->domain.'-ssl.conf';
|
||||
ShellApi::exec('rm -rf '.$apacheSSLConf);
|
||||
shell_exec('rm -rf '.$apacheSSLConf);
|
||||
|
||||
$apacheSSLConfEnabled = '/etc/apache2/sites-enabled/'.$this->domain.'-ssl.conf';
|
||||
ShellApi::exec('rm -rf '.$apacheSSLConfEnabled);
|
||||
shell_exec('rm -rf '.$apacheSSLConfEnabled);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue