nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

Command to change the data directory doesn't work

Open Alexis-IMBERT opened this issue 4 months ago • 10 comments

Describe the bug

The following command to change the data directory of an app doesn't work properly :

yunohost app setting nextcloud data_dir -v /new/data/path

The command was suggested in this thread to change properly the data directory of Nextcloud and not break fail2ban.

In the documentation here, it say that if the directory exist, the data are moved and if it doesn't, it will the directory is created.

But I try it on my server (new clean install) and it doesn't moved the data, the new directory still doesn't exist... However, the result of the following command change from the default path to the new one :

yunohost app setting nextcloud data_dir

Context

  • Hardware: Old laptop or computer
  • YunoHost version: 11.2.10.3 (stable).
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: master I supposed (the one installed from the catalog)
  • If upgrading, current package version: can be found in the admin, or with yunohost app info $app_id

Steps to reproduce

  • Install Nextcloud
  • execute this command :
yunohost app setting nextcloud data_dir -v /new/data/path
  • Try to see the content of the new directory :
ls /new/data/path

Expected behavior

The solution could simply be an explanation of how to change the data directory properly (it's really relevant for using get Nextcloud on an bigger drive space than the one of Yunohost is running)

The best option will be a new configuration option on the web administration

PS : With explanation on what to do, I will be pleased to help on the development of this feature

Thank you of your help and investment

Alexis-IMBERT avatar Mar 02 '24 18:03 Alexis-IMBERT