Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 689292d4 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

feat: remove cli check condition on storageWrapper setup

some cli commands (ex: fileScan & generateMetaData BG job) are using FS
which is causing issue in minimal setup. We need to stop this access.

issue: https://gitlab.e.foundation/e/infra/backlog/-/issues/3642
parent a00272b4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ class Application extends App implements IBootstrap {
	public function addStorageWrapperCallback($mountPoint, IStorage $storage) {
		$instanceId = \OC::$server->getConfig()->getSystemValue('instanceid', '');
		$appdataFolder = 'appdata_' . $instanceId;
		if (!\OC::$CLI && $mountPoint !== '/' && strpos($mountPoint, '/' . $appdataFolder) !== 0) {
		if ($mountPoint !== '/' && strpos($mountPoint, '/' . $appdataFolder) !== 0) {
			return new StorageWrapper([
				'storage' => $storage,
				'mountPoint' => $mountPoint,