HyperKitty: add a cronjob to clean expired sessions
This commit is contained in:
parent
afa0481fc1
commit
2e23119a63
2 changed files with 15 additions and 0 deletions
9
roles/mailman/files/clean-sessions.sh
Executable file
9
roles/mailman/files/clean-sessions.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
CONFFILE=/etc/mailman-migration.conf
|
||||
|
||||
set -e
|
||||
export PATH=$PATH:$(dirname $(realpath $0)) # make yamlget available
|
||||
|
||||
CONFDIR=`yamlget confdir $CONFFILE`
|
||||
django-admin clearsessions --pythonpath $CONFDIR --settings settings
|
|
@ -228,12 +228,18 @@
|
|||
- pg-give-rights.py
|
||||
- post-update.sh
|
||||
- import-mm2.py
|
||||
- clean-sessions.sh
|
||||
|
||||
- name: copy the initial user fixture
|
||||
copy: src=postorius.initial-user.json
|
||||
dest=/etc/postorius/sites/default/initial-user.json
|
||||
owner=root group=apache mode=0640
|
||||
|
||||
- name: install the cronjobs
|
||||
file: dest=/etc/cron.daily/hyperkitty-clean-sessions.sh
|
||||
src="{{ mailman_webui_basedir }}/bin/clean-sessions.sh"
|
||||
state=link
|
||||
|
||||
|
||||
# Sync databases
|
||||
- name: install the post-transaction trigger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue