From a38983072fb46217050c0748833370a6943b5e16 Mon Sep 17 00:00:00 2001 From: Tobias Ollive Date: Fri, 6 May 2022 09:54:27 +0200 Subject: [PATCH] improve doc --- README.md | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 78432c0..86e2d98 100644 --- a/README.md +++ b/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