[mailman] Install dedicated modules instead of sourcing them from /usr/scripts

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-03-08 15:23:39 +01:00 committed by ynerant
parent 77d292713f
commit e9f1cf265b
2 changed files with 6 additions and 7 deletions

View File

@ -13,9 +13,12 @@
retries: 3
until: apt_result is succeeded
- name: Install django-allauth-cas from PIP
- name: Install Crans python modules
pip:
name: django-allauth-cas
name: "{{ item }}"
loop:
- git+https://gitlab.crans.org/nounous/mailman-crans-theme.git
- git+https://gitlab.crans.org/nounous/allauth-cas-crans.git
# You will need to setup postgres
# sudo -u postgres createuser -P mailman3

View File

@ -30,12 +30,8 @@ MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')
# Application definition
# Add allauth_cas_crans path
import sys
sys.path.insert(0, "/usr/scripts/mailman")
INSTALLED_APPS = (
'mailman_theme_crans', # override templates
'mailman_crans_theme', # override templates
'hyperkitty',
'postorius',
'django_mailman3',