update et reload de postfix
This commit is contained in:
parent
3ade345c95
commit
dac9cca994
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue