Set permissions on nextcloud data dir

This commit is contained in:
Jake Howard 2020-07-02 17:52:53 +01:00
parent 452118e2a9
commit 689c0cecd9
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -40,3 +40,9 @@
chdir: /opt/nextcloud chdir: /opt/nextcloud
cmd: "{{ docker_update_command }}" cmd: "{{ docker_update_command }}"
when: compose_file.changed or config_file.changed when: compose_file.changed or config_file.changed
- name: Set data dir permissions
cron:
name: Set nextcloud data permissions
special_time: daily
job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /srv/nextcloud-data/data/*