Skip to content

Commit

Permalink
Ensure Lua debug log is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Brooks authored Jan 15, 2025
1 parent 25fafc0 commit c971abe
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/roles/mediawiki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,37 @@
- search-index
- refresh-links

- name: Check if Lua log directory exists
stat:
path: /var/log/lua
register: lua_log_dir

- name: Create Lua log directory if it does not exist
file:
path: /var/log/lua
state: directory
mode: '0755'
when: not lua_log_dir.stat.exists

- name: Check if Scribunto debug log exists
stat:
path: /var/log/lua/scribunto-debug.log
register: scribunto_log

- name: Create Scribunto debug log if it does not exist
file:
path: /var/log/lua/scribunto-debug.log
state: touch
mode: '0644'
when: not scribunto_log.stat.exists

- name: Set ownership of Scribunto debug log
file:
path: /var/log/lua/scribunto-debug.log
owner: apache
group: apache
mode: '0644'

# FIXME: Should search and SMW building be after update.php?

# FIXME: REMOVE?
Expand Down

0 comments on commit c971abe

Please sign in to comment.