[mailman3] Fix the migration task

DB migration task failed on settings.py and permissions. Let's fix that.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-03-26 10:51:05 +01:00
parent e66b73760b
commit 24f93a1f50
2 changed files with 3 additions and 3 deletions

View file

@ -207,7 +207,7 @@
ansible.builtin.template: ansible.builtin.template:
src: settings.py.j2 src: settings.py.j2
dest: "{{ mailman_webui_confdir }}/settings.py" dest: "{{ mailman_webui_confdir }}/settings.py"
owner: root owner: mailman
group: apache group: apache
mode: 0640 mode: 0640
tags: tags:

View file

@ -336,14 +336,14 @@ LOGGING = {
'handlers': { 'handlers': {
'mail_admins': { 'mail_admins': {
'level': 'ERROR', 'level': 'ERROR',
'filters': ['require_debug_false', 'exclude_useless_errors'], 'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler' 'class': 'django.utils.log.AdminEmailHandler'
}, },
'file':{ 'file':{
'level': 'DEBUG', 'level': 'DEBUG',
#'class': 'logging.handlers.RotatingFileHandler', #'class': 'logging.handlers.RotatingFileHandler',
'class': 'logging.handlers.WatchedFileHandler', 'class': 'logging.handlers.WatchedFileHandler',
'filename': '/var/log/hyperkitty/hyperkitty.log', 'filename': '{{ mailman_log_directory }}/hyperkitty.log',
'formatter': 'verbose', 'formatter': 'verbose',
}, },
'null': { 'null': {