Skip to content

Commit

Permalink
Check if widgets compiled templates directory exists and if so change…
Browse files Browse the repository at this point in the history
… owner to apache

The Widgets extension has a folder named complied_templates that apache must own in order for the widgets to execute in mediawiki pages
  • Loading branch information
ndc-rkevans authored Feb 8, 2024
1 parent 7bc22b7 commit 6f8d9f2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/roles/mediawiki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,19 @@
- local-skins
- latest

- name: Check if the compiled_templates directory exists per the widgets extension
stat:
path: "{{ m_mediawiki }}/extensions/Widgets/compiled_templates/"
register: mw_ext_widgets_compiled_templates_folder

- name: "Ensure compiled templates folder for widget extension is ownwed by apache"
file:
path: "{{ m_mediawiki }}/extensions/Widgets/compiled_templates/"
owner: apache
group: apache
mode: "0755"
when: mw_ext_widgets_compiled_templates_folder.stat.exists

#
# LocalSettings.php
#
Expand Down

0 comments on commit 6f8d9f2

Please sign in to comment.