Skip to content
Snippets Groups Projects
Commit d0f92fc6 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'develop' into 'develop'

APS deletion follows symlink

See merge request ispconfig/ispconfig3!1666
parents 7b15d049 d079b013
No related branches found
No related tags found
No related merge requests found
......@@ -384,7 +384,7 @@ class ApsInstaller extends ApsBase
if(is_dir($this->document_root)){
$files = array_diff(scandir($this->document_root), array('.', '..', 'error', 'stats'));
foreach($files as $file){
if(is_dir($this->document_root.'/'.$file)){
if(is_dir($this->document_root.'/'.$file) and !is_link($this->document_root.'/'.$file)){
$app->file->removeDirectory($this->document_root.'/'.$file);
} else {
@unlink($this->document_root.'/'.$file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment