mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Adding doc to change folder emplacement fr & en
This commit is contained in:
parent
9a7bfdafeb
commit
d65286ad6a
2 changed files with 73 additions and 30 deletions
51
doc/ADMIN.md
51
doc/ADMIN.md
|
@ -10,26 +10,47 @@ Alternatively, you may open a 'Nextcloud shell' with `sudo yunohost app shell __
|
|||
|
||||
### Change data folder location
|
||||
|
||||
The following command shows the current location of the data folder.
|
||||
It may be worth changing the default location of the Nextcloud folder to store data on a second hard disk.
|
||||
|
||||
```bash
|
||||
yunohost app setting __APP__ data_dir
|
||||
```
|
||||
1. Find the current Nextcloud data path
|
||||
|
||||
After installation, the result should be :
|
||||
```bash
|
||||
yunohost app setting __APP__ data_dir
|
||||
```
|
||||
|
||||
```bash
|
||||
__DATA_DIR__
|
||||
```
|
||||
This command should display :
|
||||
|
||||
To modify the data folder, issue this command
|
||||
```bash
|
||||
__DATA_DIR__
|
||||
```
|
||||
|
||||
1. Move Nextcloud data to the new location:
|
||||
For the example, we'll use the `/media/storage/nextcloud` folder.
|
||||
|
||||
```bash
|
||||
mv __DATA_DIR__ /media/stockage/nextcloud
|
||||
```
|
||||
|
||||
1. Change folder owner :
|
||||
|
||||
```bash
|
||||
chown nextcloud:nextcloud /media/storage/nextcloud
|
||||
```
|
||||
|
||||
1. Create a symbolic link between the default folder and the new one:
|
||||
|
||||
```bash
|
||||
ln -s /media/stockage/nextcloud __DATA_DIR__
|
||||
```
|
||||
|
||||
1. Test Nextcloud files:
|
||||
|
||||
```bash
|
||||
sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ files:scan --all
|
||||
```
|
||||
|
||||
You're done! Your data is now stored in the folder `/media/storage/nextcloud`.
|
||||
|
||||
```bash
|
||||
yunohost app setting __APP__ data_dir -v /your/custom/data-path
|
||||
```
|
||||
Change the permissions of the folder :
|
||||
```bash
|
||||
chown nextcloud:nextcloud /your/custom/data-path
|
||||
### ONLYOFFICE integration
|
||||
|
||||
ONLYOFFICE is an online rich text document editor which can be integrated in Nextcloud
|
||||
|
|
|
@ -10,25 +10,47 @@ Ou bien, vous pouvez ouvrir un "shell Nextcloud" avec `sudo yunohost app shell _
|
|||
|
||||
### Changer l'emplacement du dossier data
|
||||
|
||||
Avec la commande suivante vous pouvez voir l'emplacement actuel de dossier data.
|
||||
Il peut être intéressant de changer l'emplacement par défaut du dossier Nextcloud pour stocker les données sur un second disque dur.
|
||||
|
||||
```bash
|
||||
yunohost app setting __APP__ data_dir
|
||||
```
|
||||
1. Trouver le chemin actuel des data Nextcloud
|
||||
|
||||
Après installation le résultat devrait être :
|
||||
```bash
|
||||
yunohost app setting __APP__ data_dir
|
||||
```
|
||||
|
||||
```bash
|
||||
__DATA_DIR__
|
||||
```
|
||||
Cette commande devrait afficher :
|
||||
|
||||
```bash
|
||||
__DATA_DIR__
|
||||
```
|
||||
|
||||
1. Déplacer les données Nextcloud au nouvel emplacement :
|
||||
Pour l'exemple nous prendrons le dossier `/media/stockage/nextcloud`
|
||||
|
||||
```bash
|
||||
mv __DATA_DIR__ /media/stockage/nextcloud
|
||||
```
|
||||
|
||||
1. Modifier le propriétaire du dossier :
|
||||
|
||||
```bash
|
||||
chown nextcloud:nextcloud /media/stockage/nextcloud
|
||||
```
|
||||
|
||||
1. Créer un lien symbolique entre le dossier par défaut et le nouveau dossier :
|
||||
|
||||
```bash
|
||||
ln -s /media/stockage/nextcloud __DATA_DIR__
|
||||
```
|
||||
|
||||
1. Tester les fichiers Nextcloud :
|
||||
|
||||
```bash
|
||||
sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ files:scan --all
|
||||
```
|
||||
|
||||
C'est fini ! Vos données sont maintenant stocké dans le dossier `/media/stockage/nextcloud`
|
||||
|
||||
Pour modifier le dossier data faite cette commande
|
||||
```bash
|
||||
yunohost app setting __APP__ data_dir -v /chemin/vers/nouvel/emplacement/data
|
||||
```
|
||||
Modifier les permissions du dossier :
|
||||
```bash
|
||||
chown nextcloud:nextcloud /your/custom/data-path
|
||||
### Intégration d'ONLYOFFICE
|
||||
|
||||
ONLYOFFICE est un éditeur de texte enrichi en ligne qui peut s'intégrer dans Nextcloud
|
||||
|
|
Loading…
Add table
Reference in a new issue