improve doc
This commit is contained in:
parent
c4ae96976a
commit
a38983072f
33
README.md
33
README.md
|
@ -25,12 +25,11 @@ sudo -u postgres pg_dump -Fc nc > nc.dump
|
|||
```
|
||||
3. Sauver les données du dossier nextcloud
|
||||
```
|
||||
mkdir /var/lib/backuppc/migration
|
||||
tar caf /var/lib/backuppc/migration/nextcloud.tar.xz /srv/nextcloud/
|
||||
mkdir -p /var/lib/backuppc/migration/data
|
||||
cp -r /srv/nextcloud/ /var/lib/backuppc/migration/data
|
||||
```
|
||||
4. Sauver le fichier de configuration de nextcloud
|
||||
```
|
||||
# par précaution, ne devrait pas être utile
|
||||
cp /var/www/nextcloud/public_html/config/config.php /var/lib/backuppc/migration
|
||||
```
|
||||
|
||||
|
@ -44,7 +43,17 @@ installation de proxmox, vm, docker.
|
|||
```
|
||||
git clone https://yuno.oiseauroch.fr/gitea/tobias/infra-oasis21.git
|
||||
```
|
||||
2. Create `config.php` from the file in vaultwarden
|
||||
2. copy file `config.php` and change values
|
||||
```
|
||||
cp /var/lib/backuppc/migration/config.php .
|
||||
# change host for redis
|
||||
sed -i 's#/run/redis/redis.sock#redis#' config.php
|
||||
# change dbhost
|
||||
sed -i 's#localhost#nextcloud-db#' config.php
|
||||
# change datadirectory
|
||||
sed -i 's#/srv/nextcloud#/var/www/html/data#' config.php
|
||||
|
||||
```
|
||||
3. Move `secrets/librezo.secrets.example` to `secrets/librezo.secrets`
|
||||
4.Replace **nextcloud** and **collabora** password from vaultwarden
|
||||
```
|
||||
|
@ -68,13 +77,21 @@ docker-compose up -d nextcloud-db
|
|||
docker-compose exec nextcloud-db sh -c "pg_restore -d nc -U nc nc.dmp"
|
||||
docker-compose exec nextcloud-db rm /nc.dmp
|
||||
```
|
||||
7. Copy files
|
||||
7. Copy files and set correct rights
|
||||
```
|
||||
docker cp /your/files nextcloud-app:/var/www/html/
|
||||
docker cp /var/lib/backuppc/migration/data nextcloud-app:/var/www/html/
|
||||
cp config.php nextcloud-app:/var/www/html/config/config.php
|
||||
docker-compose up -d nextcloud-app
|
||||
docker-compose exec nextcloud-app chown -R www-data:www-data /var/www/html/data
|
||||
docker-compose exec nextcloud-app chown -R www-data:www-data /var/www/html/config/config.php
|
||||
```
|
||||
8. change `config.php` rights
|
||||
8. restart docker-compose
|
||||
```
|
||||
docker-compose exec nextcloud-app chown -R www-data:www-data /var/www/html/config
|
||||
docker-compose restart
|
||||
```
|
||||
|
||||
### Configure collabora
|
||||
1. connect to nextcloud
|
||||
2. go to paramètres->nextcloud office-> utiliser mon propre serveur
|
||||
3. choisir `code.oasis21.org`, décocher l'option `ne pas vérifier le certificat`
|
||||
4. désinstaller l'application collabora built-in serveur
|
||||
|
|
Loading…
Reference in New Issue
Block a user