summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-06-10 16:34:21 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-06-10 16:34:44 -0400
commit3c57fb935bec7b431596c8aec3f344df7dba354a (patch)
tree75ac7d4b05193e99af14a9e34313e98f10fa12d0 /lib
parentdd8303b9752cec02fa26b190c24a578fddc4e9c0 (diff)
downloadnextcloud-server-3c57fb935bec7b431596c8aec3f344df7dba354a.tar.gz
nextcloud-server-3c57fb935bec7b431596c8aec3f344df7dba354a.zip
Mount personal mount points into filesystem
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 53096f029a2..7c85db71f5f 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -70,6 +70,15 @@ class OC_Util {
$quotaProxy=new OC_FileProxy_Quota();
OC_FileProxy::register($quotaProxy);
self::$fsSetup=true;
+ // Load personal mount config
+ if (is_file($CONFIG_DATADIRECTORY_ROOT.'/'.$user.'/mount.php')) {
+ $mountConfig = include($CONFIG_DATADIRECTORY_ROOT.'/'.$user.'/mount.php');
+ if (isset($mountConfig['user'][$user])) {
+ foreach ($mountConfig['user'][$user] as $mountPoint => $options) {
+ OC_Filesystem::mount($options['class'], $options['options'], $mountPoint);
+ }
+ }
+ }
}
}