mirror of
https://github.com/nextcloud/server.git
synced 2026-02-10 22:34:26 -05:00
fixed public-keys mount point error
This commit is contained in:
parent
b08179d406
commit
5deba29bdf
1 changed files with 6 additions and 1 deletions
|
|
@ -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() ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue