forked from finallycoffee/nextcloud
feat(apps): allow checking app integrity
This commit is contained in:
parent
a907549dc9
commit
ea33ee5ea7
@ -3,3 +3,5 @@
|
||||
nextcloud_container_name: nextcloud
|
||||
nextcloud_apps: []
|
||||
nextcloud_run_user: nextcloud
|
||||
|
||||
nextcloud_apps_check_integrity: false
|
||||
|
@ -48,3 +48,12 @@
|
||||
loop: "{{ nextcloud_apps }}"
|
||||
notify:
|
||||
- restart-nextcloud
|
||||
|
||||
- name: Ensure app integrity
|
||||
community.docker.docker_container_exec:
|
||||
container: "{{ nextcloud_container_name }}"
|
||||
command: "php occ integrity:check-app {{ item.name }}"
|
||||
user: "{{ nextcloud_run_user }}"
|
||||
tty: yes
|
||||
when: nextcloud_apps_check_integrity and item.state|default('present') in ['latest', 'present']
|
||||
loop: "{{ nextcloud_apps }}"
|
||||
|
Loading…
Reference in New Issue
Block a user