Skip to content

Commit d0f92fc

Browse files
author
Till Brehm
committed
Merge branch 'develop' into 'develop'
APS deletion follows symlink See merge request ispconfig/ispconfig3!1666
2 parents 7b15d04 + d079b01 commit d0f92fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/aps_installer.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private function prepareFiles($task, $sxe)
384384
if(is_dir($this->document_root)){
385385
$files = array_diff(scandir($this->document_root), array('.', '..', 'error', 'stats'));
386386
foreach($files as $file){
387-
if(is_dir($this->document_root.'/'.$file)){
387+
if(is_dir($this->document_root.'/'.$file) and !is_link($this->document_root.'/'.$file)){
388388
$app->file->removeDirectory($this->document_root.'/'.$file);
389389
} else {
390390
@unlink($this->document_root.'/'.$file);

0 commit comments

Comments
 (0)