Tasks fuer Hotfixes

This commit is contained in:
phil 2021-06-26 00:51:50 +02:00
parent a56b2f2db7
commit f41991b638
2 changed files with 18 additions and 0 deletions

16
tasks/fixes.yml Normal file
View file

@ -0,0 +1,16 @@
---
- name: "fixes: Prüfe NC-Version"
shell:
cmd: occ -V | cut -d ' ' -f2
chdir: "{{ nextcloud_install_path }}"
become: true
become_user: "{{ common_name }}"
register: nc_installed_version
- name: "fixes: https://github.com/nextcloud/files_pdfviewer/issues/381"
get_url:
url: https://raw.githubusercontent.com/nextcloud/files_pdfviewer/6d81ffbb65c3758bece144e0aff07b4a0ad20eef/js/files_pdfviewer-main.js
dest: "{{ nextcloud_install_path }}/apps/files_pdfviewer/js/files_pdfviewer-main.js"
owner: "{{ common_name }}"
group: "{{ common_name }}"
when: nc_installed_version >= "21.0.2"

View file

@ -8,3 +8,5 @@
- import_tasks: redis.yml
- import_tasks: nextcloud.yml
tags: nextcloud
- import_task: fixes.yml
tags: fixes