diff --git a/nextcloud.yml b/nextcloud.yml index 44b0122..458773c 100644 --- a/nextcloud.yml +++ b/nextcloud.yml @@ -337,8 +337,13 @@ create: yes marker: "# {mark} ANSIBLE MANAGED BLOCK" block: | - # Nextcloud maintenance and app-update 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-indices docker compose exec -T -u www-data nextcloud.{{inventory_hostname}} ./occ db:add-missing-primary-keys