nextcloud.yml aktualisiert

This commit is contained in:
olli 2023-09-28 10:49:28 +02:00
parent 398b9ab61f
commit 1021406588

View File

@ -339,27 +339,27 @@
block: |
# Nextcloud maintenance and app-update
cd /home/docker/nextcloud.{{inventory_hostname}} || continue
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-columns
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-indices
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-primary-keys
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ app:update --all
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ dav:sync-birthday-calendar
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ trashbin:cleanup --all-users
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ files:cleanup
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ files:scan --all
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ maps:scan-photos
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:convert-filecache-bigint -n
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-columns
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-indices
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-primary-keys
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ app:update --all
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ dav:sync-birthday-calendar
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ trashbin:cleanup --all-users
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ files:cleanup
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ files:scan --all
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ maps:scan-photos
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:convert-filecache-bigint -n
# define stun/turn server maybe new password
if [ -s /home/docker/turn.{{inventory_hostname}}/env ]
then
# turn
source /home/docker/turn.{{inventory_hostname}}/env
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:delete turns turn.{{inventory_hostname}}:5349 udp,tcp
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:add --secret $TURN_SECRET turns turn.{{inventory_hostname}}:5349 udp,tcp
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:delete turns turn.{{inventory_hostname}}:5349 udp,tcp
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:turn:add --secret $TURN_SECRET turns turn.{{inventory_hostname}}:5349 udp,tcp
# stun
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete turn.{{inventory_hostname}}:5349
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:add turn.{{inventory_hostname}}:5349
docker-compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete stun.nextcloud.com:443
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete turn.{{inventory_hostname}}:5349
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:add turn.{{inventory_hostname}}:5349
docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ talk:stun:delete stun.nextcloud.com:443
fi
backup: yes
validate: /bin/bash -n %s