publik-emailconf: add comment in template
This commit is contained in:
parent
266537bc6e
commit
5704704aa5
|
@ -8,8 +8,10 @@ parser = argparse.ArgumentParser()
|
|||
parser.add_argument('site', help='free form site name, including test/prod/else hints')
|
||||
args = parser.parse_args()
|
||||
|
||||
template = """ADMINS = (('Admin EO', 'admin+{site}.{brique}@entrouvert.com'),)
|
||||
SERVER_EMAIL = 'admin+{site}.{brique}@entrouvert.com'"""
|
||||
template = """# created by publik-emailconf
|
||||
ADMINS = (('Admin EO', 'admin+{site}.{brique}@entrouvert.com'),)
|
||||
SERVER_EMAIL = 'admin+{site}.{brique}@entrouvert.com'
|
||||
"""
|
||||
|
||||
with open('/etc/publik/publik.conf') as fh:
|
||||
briques = yaml.load(fh.read())['defaults']['briques']
|
||||
|
|
Loading…
Reference in New Issue