Commit 5b88781f authored by Charlie Jacomme's avatar Charlie Jacomme

small fixes

parent d9101e71
......@@ -23,9 +23,9 @@ api_client = Re2oAPIClient(api_hostname, api_username, api_password)
client_hostname = socket.gethostname().split('.', 1)[0]
all_users = api_client.list("localemail/users")
def generate(api_client):
all_users = api_client.list("localemail/users")
# Création de l'environnement Jinja
env = Environment(loader=FileSystemLoader('.'))
template = env.get_template('templates/list')
......@@ -42,7 +42,7 @@ def generate(api_client):
fichier.write(aliases_rendered)
fichier.close()
call(["newalias", "generated/aliases"]) # Update the aliases config file
call(["/usr/bin/newaliases"]) # Update the aliases config file
call(["postfix", "reload"]) # force the reloading now
for service in api_client.list("services/regen/"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment