From: Florin Peter Date: Tue, 30 Apr 2013 22:09:55 +0000 (+0200) Subject: fixed public-keys mount point error X-Git-Tag: v6.0.0alpha2~743^2~135 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5deba29bdfedc3ee2babece9eafff0bb709cd90c;p=nextcloud-server.git fixed public-keys mount point error --- diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 25c2d091c4b..e27054f0ec8 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -45,7 +45,12 @@ class Hooks { $view = new \OC_FilesystemView( '/' ); - $util = new Util( $view, $params['uid'] ); + $userHome = \OC_User::getHome($params['uid']); + $dataDir = str_replace('/'.$params['uid'], '', $userHome); + + \OC\Files\Filesystem::mount( 'OC_Filestorage_Local', array('datadir' => $dataDir .'/public-keys'), '/public-keys/' ); + + $util = new Util( $view, $params['uid'] ); // Check files_encryption infrastructure is ready for action if ( ! $util->ready() ) {