Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael de Hart committed Aug 29, 2014
1 parent b80e1c5 commit fa01f0c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
groupoffice-owncloud
====================
# groupoffice-owncloud

ownCloud plugin to connect with Group-Office

Expand All @@ -18,8 +17,17 @@ If you need to specify a Group-Office config.php location you can add:
'groupoffice_config'=>'/path/to/groupoffice/config.php'

Now you can install the Group-Office app in the app manager of ownCloud.
after this activate to "External Storage Support" App as well

Enjoy!

Intermesh Group-Office Team

http://www.group-office.com

## Troubleshooting

If the Group-Office folder is not displayed in ownCloud remove the mount.json file
it will recreate after the first login


21 changes: 10 additions & 11 deletions user_groupoffice.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,17 @@ public function __construct() {

if(!file_exists($mountFile)){
$mountConfig = array(
'user'=>array(
'all'=>array(
'/$user/files/Group-Office'=>
array(
'class'=>'OC_Filestorage_Local',
'options'=>array(
'datadir'=>\GO::config()->file_storage_path.'users/$user'.$this->_groupoffice_mount
)
),

)
'user'=>array(
'all'=>array(
'/$user/files/Group-Office'=>array(
'class'=>"\\OC\\Files\\Storage\\Local",
'options'=>array(
'datadir'=>\GO::config()->file_storage_path.'users/$user/'.$this->_groupoffice_mount
),
'priority'=>150
)
)
)
);

file_put_contents($mountFile, json_encode($mountConfig));
Expand Down

0 comments on commit fa01f0c

Please sign in to comment.