Skip to content
Snippets Groups Projects
Commit 5deba29b authored by Florin Peter's avatar Florin Peter
Browse files

fixed public-keys mount point error

parent b08179d4
No related merge requests found
......@@ -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() ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment