mailman: a few fixes

This commit is contained in:
Aurélien Bompard
2013-11-07 13:48:37 +00:00
parent 0f804a78de
commit 40f480d1aa
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import sys
import subprocess
import pickle
from optparse import OptionParser
import yaml
def call(command):
@@ -66,7 +67,8 @@ class Importer(object):
self.config["confdir"], "-s", "settings_admin",
"-l", listaddr, "--continue", archivefile])
if self.index_path:
call(["sudo", "chown", "mailman:", "-R", self.index_path])
call(["sudo", "chown", "mailman:apache", "-R", self.index_path])
call(["sudo", "chmod", "g+w", self.index_path])

View File

@@ -37,7 +37,7 @@ DATABASES = {
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = [".fedoraproject.org"]
ALLOWED_HOSTS = [".fedoraproject.org", "127.0.0.1"] # 127.0.0.1: HAProxy ping
# We're behind a proxy, use the X-Forwarded-Host header
# See https://docs.djangoproject.com/en/1.5/ref/settings/#use-x-forwarded-host