owncloud-ansible / owncloud

Ansible role for ownCloud 10
https://owncloud-ansible.github.io
Apache License 2.0
6 stars 7 forks source link

fix: enable maintenance mode after asset fetching #68

Closed d7oc closed 2 years ago

d7oc commented 2 years ago

This PR contains a possible solution for https://github.com/owncloud-ansible/owncloud/issues/66. I changed the execution order so that the tmp directory is created first, then the download is initiated and afterwards the maintenance mode is activated. This way the maintenance mode isn't activated when the download fails.

The reason to mode the tmp directory creation into a separate block is that the tmp directory is also required, when the install shouldn't happen through a download (condition - not owncloud_install_from_filesystem | bool).