nextcloud.yml aktualisiert

This commit is contained in:
olli 2023-10-10 12:53:12 +02:00
parent 1021406588
commit b355135b18

View File

@ -337,8 +337,13 @@
create: yes create: yes
marker: "# {mark} ANSIBLE MANAGED BLOCK" marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: | block: |
# Nextcloud maintenance and app-update
cd /home/docker/nextcloud.{{inventory_hostname}} || continue cd /home/docker/nextcloud.{{inventory_hostname}} || continue
# Update full Dockerfile
wget https://github.com/nextcloud/docker/raw/master/.examples/dockerfiles/full/apache/Dockerfile -O Dockerfile
sed -i 's/^FROM nextcloud:apache/FROM nextcloud:production-apache/' Dockerfile
sed -i 's/^# libreoffice/ libreoffice/' Dockerfile
wget https://github.com/nextcloud/docker/raw/master/.examples/dockerfiles/full/apache/supervisord.conf -O supervisord.conf
# Nextcloud maintenance and app-update
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-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-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 db:add-missing-primary-keys