From a7d3ae2f3e827f280c51caabb29f421266b07f4e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 12 Jan 2019 02:09:45 +0100 Subject: elevate/media: minor cleanup and fixes --- roles/elevate/media/tasks/nextcloud.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'roles/elevate/media/tasks/nextcloud.yml') diff --git a/roles/elevate/media/tasks/nextcloud.yml b/roles/elevate/media/tasks/nextcloud.yml index d827a28a..44bdfd6d 100644 --- a/roles/elevate/media/tasks/nextcloud.yml +++ b/roles/elevate/media/tasks/nextcloud.yml @@ -32,6 +32,17 @@ state: present +## to purge exisiting installation run the following commands (!!! will delete all data and the DB !!!): +# +# systemctl disable nextcloud-cron.timer +# systemctl stop nextcloud-cron.timer +# systemctl disable nextcloud.serivce +# systemctl stop nextcloud.service +# rm -rf /srv/nextcloud/config/nextcloud +# rm -rf /srv/ncdata/nextcloud +# rm -rf /srv/nextcloud/www +# echo "drop database nextcloud;" | mysql --defaults-extra-file=/etc/mysql/debian.cnf +# - name: check if nextcloud is already configured stat: path: /srv/nextcloud/config/nextcloud/config.php @@ -42,7 +53,9 @@ docker_container: name: nextcloud image: nextcloud:{{ nextcloud_version }}-fpm - command: /bin/true + ## for some reasons a newly created database schema is not up to date with the recommended settings... + ## in case this is not needed anymore using '/bin/true' here. + command: 'su -p www-data -s /bin/sh -c "php /var/www/html/occ db:convert-filecache-bigint"' network_mode: host detach: no auto_remove: yes @@ -93,4 +106,3 @@ state: started enabled: yes daemon_reload: yes - -- cgit v1.2.3