HyperKitty: add a cronjob to clean expired sessions

This commit is contained in:
Aurélien Bompard 2014-10-30 10:16:22 +00:00
parent afa0481fc1
commit 2e23119a63
2 changed files with 15 additions and 0 deletions

View 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

View file

@ -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