D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => ShareCenter® Add-on Applications => Topic started by: tazboys on April 02, 2017, 03:07:02 AM

Title: DNS-320L Onwcloud files location
Post by: tazboys on April 02, 2017, 03:07:02 AM
hi,
I do have DNS-320L and I have installed DNS-320L owncloud Package v2.04_07012015_UA version of owncloud. I run the app no problems but I cannot change the directory for owncloud it always has Documents, Photos and owncloudusermanual.pdf. I have tried to change the config file etc but no luck. what can I do?

Thanks
Title: Re: DNS-320L Onwcloud files location
Post by: vtverdohleb on April 03, 2017, 07:20:26 AM
You can not change it. Rather, you can, but this requires knowledge of PHP.
Another option is to create a symlink. But the files will be read-only.
Title: Re: DNS-320L Onwcloud files location
Post by: tazboys on April 03, 2017, 07:45:04 AM
thanks for this.
Can you please let me know which PHP file I need to look at? If it is simple enough, I should be able to do that?
Can you please also me know if other versions can do that or can you let me know a addon that can do that?

thanks a lot.
Title: Re: DNS-320L Onwcloud files location
Post by: vtverdohleb on April 04, 2017, 05:26:56 AM
thanks for this.
Can you please let me know which PHP file I need to look at? If it is simple enough, I should be able to do that?
Can you please also me know if other versions can do that or can you let me know a addon that can do that?

thanks a lot.

I did not study deeply the PHP code of ownCloud, I do not need it. Therefore, I can not say where and what to correct.
I think this question should be asked at specialized forums ownCloud, there is more probability of receiving an answer.
Title: Re: DNS-320L Onwcloud files location
Post by: tazboys on April 04, 2017, 06:40:10 AM
I understand. are you aware of any other add-ons that can be used with dns-320l to have similar functionality?
Title: Re: DNS-320L Onwcloud files location
Post by: Rushmere on April 04, 2017, 02:50:59 PM
On my DNS327, I have managed to change the location by editing the file:

/mnt/HD/HD_a2/Nas_Prog/owncloud/owncloud/config/config.php

Move the folder from its original location to the new one and then re-enable the addon.

Note that the NAS has a habit of hiding the folder, so if you take ownership as well, it should stay visible on the usual file browsers
Title: Re: DNS-320L Onwcloud files location
Post by: vtverdohleb on April 05, 2017, 01:16:55 AM
Yes you are right. I forgot that 'datadirectory' is in owncloud / config / config.php
But unfortunately this is also not the best solution. Firstly, the directory and files with the rights "root", that is, "read only". Secondly, even if you run lighttpd & php-fpm with "nobody" rights, owncloud keeps the list of files / directories in SQL, and the files copied to the 'datadirectory' will not be visible through the web interface.