Skip to content

Commit

Permalink
ignoring default apps folder when working on custom_apps
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Dec 24, 2021
1 parent 68c0cb0 commit 571f71d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Service/PointService.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ private function addCustomApps(RestoringPoint $point): void {
continue;
}

$name = 'apps-' . str_replace('/', '', $this->get('url', $app) . '-' . $this->uuid(8));
$customUrl = str_replace('/', '', $this->get('url', $app));
if ($this->get('path', $app) === OC::$SERVERROOT . '/apps' && $customUrl === 'apps') {
continue;
}

$name = 'apps-' . $customUrl . '-' . $this->uuid(8);
$path = ltrim($this->get('path', $app), '/');
$point->addRestoringData(new RestoringData(RestoringData::ROOT_DISK, $path, $name));
}
Expand Down

0 comments on commit 571f71d

Please sign in to comment.