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])