From: Robin Appelman Date: Sun, 5 Feb 2012 20:45:41 +0000 (+0100) Subject: always mount the root filesystem, sometimes we need the filesystem when not logged in X-Git-Tag: v4.0.0beta~440^2~70 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=501678f981cf8e320d11cf1a780aefeae1537050;p=nextcloud-server.git always mount the root filesystem, sometimes we need the filesystem when not logged in --- diff --git a/lib/util.php b/lib/util.php index 1b1e29b6749..3329789de92 100644 --- a/lib/util.php +++ b/lib/util.php @@ -35,9 +35,9 @@ class OC_Util { $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 - //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"; if( !is_dir( OC::$CONFIG_DATADIRECTORY )){