Upgraded nextcloud description

This commit is contained in:
Kevin Veen-Birkenbach 2022-02-12 08:36:55 +00:00
parent a999b2764a
commit c8878b056b

View File

@ -11,23 +11,30 @@ To access the database execute
### update ### update
To update the nextcloud container execute the following commands on the server: To update the nextcloud container execute the following commands on the server:
```bash ```bash
export COMPOSE_HTTP_TIMEOUT=600 export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600 export DOCKER_CLIENT_TIMEOUT=600
cd /home/administrator/docker-compose/nextcloud && docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:mode --on
docker-compose pull && sudo python /usr/local/bin/docker-volume-backup/docker-volume-backup.py
docker-compose up -d cd /home/administrator/docker-compose/nextcloud && docker-compose down
``` ```
Afterwards update the ***nextcloud_version*** variable to the next version and run the server manager. Afterwards update the ***nextcloud_version*** variable to the next version and run the this repository with this ansible role.
It is only possible to update from one to the next major version at a time It is only possible to update from one to the next major version at a time
You can check the status of the update by typing in: Wait for the update to finish.
You can verify that the update is finished by checking the following logs:
```bash ```bash
docker logs nextcloud_application_1 sudo docker logs nextcloud_application_1
```
or
```bash
sudo docker exec -it nextcloud_application_1 top
``` ```
If nextcloud stays in the maintenance mode after the update try the following: If nextcloud stays in the maintenance mode after the update try the following:
@ -44,7 +51,7 @@ If the update process fails execute
docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:repair docker exec -it -u www-data nextcloud_application_1 /var/www/html/occ maintenance:repair
``` ```
and disable the mal functioning apps. and disable the not functioning apps.
### recover latest backup ### recover latest backup
```bash ```bash