mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Merge d65286ad6a
into aca04bd274
This commit is contained in:
commit
bfebc36b7f
2 changed files with 89 additions and 1 deletions
46
doc/ADMIN.md
46
doc/ADMIN.md
|
@ -2,12 +2,55 @@
|
||||||
|
|
||||||
You can run Nextcloud commands from the command line using:
|
You can run Nextcloud commands from the command line using:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
sudo -u __APP__ php__PHPVERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ ...
|
sudo -u __APP__ php__PHPVERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ ...
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you may open a 'Nextcloud shell' with `sudo yunohost app shell __APP__`, then run `php occ ...`
|
Alternatively, you may open a 'Nextcloud shell' with `sudo yunohost app shell __APP__`, then run `php occ ...`
|
||||||
|
|
||||||
|
### Change data folder location
|
||||||
|
|
||||||
|
It may be worth changing the default location of the Nextcloud folder to store data on a second hard disk.
|
||||||
|
|
||||||
|
1. Find the current Nextcloud data path
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yunohost app setting __APP__ data_dir
|
||||||
|
```
|
||||||
|
|
||||||
|
This command should display :
|
||||||
|
|
||||||
|
```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`.
|
||||||
|
|
||||||
### ONLYOFFICE integration
|
### ONLYOFFICE integration
|
||||||
|
|
||||||
ONLYOFFICE is an online rich text document editor which can be integrated in Nextcloud
|
ONLYOFFICE is an online rich text document editor which can be integrated in Nextcloud
|
||||||
|
@ -23,6 +66,7 @@ For better performance and ARM64 support (Raspberry Pi, OLinuXino...), install t
|
||||||
#### Alternative: With Nextcloud App (no ARM support, lower performance)
|
#### Alternative: With Nextcloud App (no ARM support, lower performance)
|
||||||
|
|
||||||
Nextcloud features a direct integration of ONLYOFFICE through a Nextcloud app.
|
Nextcloud features a direct integration of ONLYOFFICE through a Nextcloud app.
|
||||||
|
|
||||||
- Install *Community Document Server* application in your Nextcloud. That's the part that runs ONLYOFFICE server.
|
- Install *Community Document Server* application in your Nextcloud. That's the part that runs ONLYOFFICE server.
|
||||||
- Install *ONLYOFFICE* application. That's the client part that will connect to an ONLYOFFICE server.
|
- Install *ONLYOFFICE* application. That's the client part that will connect to an ONLYOFFICE server.
|
||||||
- Then in Settings -> ONLYOFFICE (`https://__DOMAIN____PATH__/settings/admin/onlyoffice`), if you want to configure which file formats should be opened by ONLYOFFICE.
|
- Then in Settings -> ONLYOFFICE (`https://__DOMAIN____PATH__/settings/admin/onlyoffice`), if you want to configure which file formats should be opened by ONLYOFFICE.
|
||||||
|
|
|
@ -8,6 +8,49 @@ sudo -u __APP__ php__PHPVERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ
|
||||||
|
|
||||||
Ou bien, vous pouvez ouvrir un "shell Nextcloud" avec `sudo yunohost app shell __APP__`, puis lancer `php occ ...`
|
Ou bien, vous pouvez ouvrir un "shell Nextcloud" avec `sudo yunohost app shell __APP__`, puis lancer `php occ ...`
|
||||||
|
|
||||||
|
### Changer l'emplacement du 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.
|
||||||
|
|
||||||
|
1. Trouver le chemin actuel des data Nextcloud
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yunohost app setting __APP__ 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`
|
||||||
|
|
||||||
### Intégration d'ONLYOFFICE
|
### Intégration d'ONLYOFFICE
|
||||||
|
|
||||||
ONLYOFFICE est un éditeur de texte enrichi en ligne qui peut s'intégrer dans Nextcloud
|
ONLYOFFICE est un éditeur de texte enrichi en ligne qui peut s'intégrer dans Nextcloud
|
||||||
|
@ -23,6 +66,7 @@ Pour de meilleures performances et le support de ARM64 (Raspberry Pi, OLinuXino.
|
||||||
#### Alternative: avec l'application Nextcloud (pas de support ARM, performances limitées)
|
#### Alternative: avec l'application Nextcloud (pas de support ARM, performances limitées)
|
||||||
|
|
||||||
Nextcloud inclut une intégration directe via une application Nextcloud.
|
Nextcloud inclut une intégration directe via une application Nextcloud.
|
||||||
|
|
||||||
- Installez l'application *Community Document Server* dans votre Nextcloud. C'est la partie qui fait tourner un serveur ONLYOFFICE.
|
- Installez l'application *Community Document Server* dans votre Nextcloud. C'est la partie qui fait tourner un serveur ONLYOFFICE.
|
||||||
- Installez l'application *ONLYOFFICE*. C'est la partie cliente qui va se connecter au serveur ONLYOFFICE.
|
- Installez l'application *ONLYOFFICE*. C'est la partie cliente qui va se connecter au serveur ONLYOFFICE.
|
||||||
- Ensuite dans les Paramètres -> ONLYOFFICE (`https://__DOMAIN____PATH__/settings/admin/onlyoffice`), si vous voulez configurer quels formats de fichier s'ouvrent avec ONLYOFFICE.
|
- Ensuite dans les Paramètres -> ONLYOFFICE (`https://__DOMAIN____PATH__/settings/admin/onlyoffice`), si vous voulez configurer quels formats de fichier s'ouvrent avec ONLYOFFICE.
|
||||||
|
|
Loading…
Add table
Reference in a new issue