Pagure: hotfix missing JS library
Related to: - https://pagure.io/pagure/issue/4891 - https://pagure.io/pagure/pull-request/4892 Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
9767a916f7
commit
e0f1c7c024
2 changed files with 34 additions and 0 deletions
5
roles/pagure/frontend/files/hotfix/d3/d3.v3.min.js
vendored
Normal file
5
roles/pagure/frontend/files/hotfix/d3/d3.v3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -596,3 +596,32 @@
|
|||
tags:
|
||||
- pagure
|
||||
- letsencrypt
|
||||
|
||||
- name: Hotfix missing JS lib -- find out where the file should be
|
||||
shell:
|
||||
cmd: rpm -ql pagure | grep 'pagure/static/vendor$' | head -n 1
|
||||
warn: no # package, dnf, yum can't do this
|
||||
register: pagure_hotfix_vendorlibpath
|
||||
changed_when: False
|
||||
failed_when: pagure_hotfix_vendorlibpath.rc != 0
|
||||
tags:
|
||||
- pagure
|
||||
- hotfix
|
||||
|
||||
- name: Hotfix missing JS lib -- ensure directory exists
|
||||
file:
|
||||
path: "{{ pagure_hotfix_vendorlibpath.stdout }}/d3"
|
||||
state: directory
|
||||
mode: u+rwx,g+rx,o+rx-w
|
||||
tags:
|
||||
- pagure
|
||||
- hotfix
|
||||
|
||||
- name: Hotfix missing JS lib -- ensure file exists
|
||||
copy:
|
||||
force: no # don't overwrite packaged files
|
||||
src: hotfix/d3/d3.v3.min.js
|
||||
dest: "{{ pagure_hotfix_vendorlibpath.stdout }}/d3/d3.v3.min.js"
|
||||
tags:
|
||||
- pagure
|
||||
- hotfix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue