diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-12 00:57:43 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-12 00:57:43 +0200 |
commit | 2a5ee9512ee88da53dcba862a32279bdc7096bfb (patch) | |
tree | 19da70b3a7a37762c450d03be976b669045740f1 /lib/base.php | |
parent | 5425c3d1e919f305930176aef6f531eb2d42f7dd (diff) | |
download | nextcloud-server-2a5ee9512ee88da53dcba862a32279bdc7096bfb.tar.gz nextcloud-server-2a5ee9512ee88da53dcba862a32279bdc7096bfb.zip |
allow tear down of filesystem.
also fix a bug when chrooting to '/'
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index a3ffb6b1a6f..50c41dc0859 100644 --- a/lib/base.php +++ b/lib/base.php @@ -145,7 +145,7 @@ class OC_UTIL { if( $user != "" ){ //if we aren't logged in, there is no use to set up the filesystem //first set up the local "root" storage and the backupstorage if needed - $rootStorage=OC_FILESYSTEM::createStorage('local',array('datadir'=>$CONFIG_DATADIRECTORY)); + $rootStorage=OC_FILESYSTEM::createStorage('local',array('datadir'=>$CONFIG_DATADIRECTORY_ROOT)); // if( OC_CONFIG::getValue( "enablebackup", false )){ // // This creates the Directorys recursively // if(!is_dir( "$CONFIG_BACKUPDIRECTORY/$user/$root" )){ @@ -182,6 +182,11 @@ class OC_UTIL { } } + public static function tearDownFS(){ + OC_FILESYSTEM::tearDown(); + self::$fsSetup=false; + } + /** * get the current installed version of ownCloud * @return array |