update et reload de postfix

This commit is contained in:
grisel-davy 2018-07-19 12:53:35 +02:00
parent 3ade345c95
commit dac9cca994

View file

@ -9,6 +9,7 @@ from jinja2 import Environment, FileSystemLoader
import requests import requests
import base64 import base64
import json import json
from subprocess import call
import os.path import os.path
config = ConfigParser() config = ConfigParser()
@ -40,5 +41,6 @@ if os.path.isfile('aliases_local'): # if a local aliases file exist, add it's c
fichier.write(aliases_rendered) fichier.write(aliases_rendered)
fichier.close() fichier.close()
print('done')
call(["newalias", "generated/aliases"]) # Update the aliases config file
call(["postfix", "reload"]) # force the reloading now