always mount the root filesystem, sometimes we need the filesystem when not logged in
This commit is contained in:
parent
f1cbb9effc
commit
501678f981
|
@ -35,9 +35,9 @@ class OC_Util {
|
||||||
$user = OC_User::getUser();
|
$user = OC_User::getUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//first set up the local "root" storage
|
||||||
|
OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT),'/');
|
||||||
if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem
|
if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem
|
||||||
//first set up the local "root" storage
|
|
||||||
OC_Filesystem::mount('OC_Filestorage_Local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT),'/');
|
|
||||||
|
|
||||||
OC::$CONFIG_DATADIRECTORY = $CONFIG_DATADIRECTORY_ROOT."/$user/$root";
|
OC::$CONFIG_DATADIRECTORY = $CONFIG_DATADIRECTORY_ROOT."/$user/$root";
|
||||||
if( !is_dir( OC::$CONFIG_DATADIRECTORY )){
|
if( !is_dir( OC::$CONFIG_DATADIRECTORY )){
|
||||||
|
|
Loading…
Reference in New Issue