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

Commit 5526b447 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'dev/appdata-wrapper-fix' into 'main'

skip appdata folder

See merge request !168
parents 24f10e94 0261ee2d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
    <description><![CDATA[in /e/OS cloud, nextcloud accounts are linked to mail accounts. This app ensures both are coordinated: it sets the e-mail address, quota and storage of the user upon creation.
    It also completes the account deletion by cleaning other parts of the /e/OS cloud setup to ensure no more data is retained when a user requests an account deletion.
    This app uses the UserDeletedEvent to invoke scripts in the docker-welcome container of /e/OS cloud setup]]></description>
    <version>9.0.0</version>
    <version>8.0.2</version>
    <licence>agpl</licence>
    <author mail="dev@murena.com" homepage="https://murena.com/">Murena SAS</author>
    <namespace>EcloudAccounts</namespace>
+3 −1
Original line number Diff line number Diff line
@@ -89,7 +89,9 @@ class Application extends App implements IBootstrap {
	 * @return StorageWrapper|IStorage
	 */
	public function addStorageWrapperCallback($mountPoint, IStorage $storage) {
		if (!\OC::$CLI && $mountPoint !== '/') {
		$instanceId = \OC::$server->getConfig()->getSystemValue('instanceid', '');
		$appdataFolder = 'appdata_' . $instanceId;
		if (!\OC::$CLI && $mountPoint !== '/' && strpos($mountPoint, '/' . $appdataFolder) !== 0) {
			return new StorageWrapper([
				'storage' => $storage,
				'mountPoint' => $mountPoint,