|
|
|
@ -9,7 +9,7 @@ from jinja2 import Environment, FileSystemLoader
|
|
|
|
|
import requests
|
|
|
|
|
import base64
|
|
|
|
|
import json
|
|
|
|
|
from subprocess import call
|
|
|
|
|
from subprocess import call, DEVNULL
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
@ -61,8 +61,8 @@ def generate(api_client):
|
|
|
|
|
fichier.write(virtuals_rendered)
|
|
|
|
|
fichier.close()
|
|
|
|
|
|
|
|
|
|
call(["/usr/bin/newaliases"], stdout=open(os.devnull, 'wb')) # Update the aliases config file
|
|
|
|
|
call(["/usr/sbin/postmap", path+"/generated/virtual"], stdout=open(os.devnull, 'wb')) # Update the aliases config file
|
|
|
|
|
call(["/usr/bin/newaliases"], stdout=DEVNULL) # Update the aliases config file
|
|
|
|
|
call(["/usr/sbin/postmap", path+"/generated/virtual"], stdout=DEVNULL) # Update the aliases config file
|
|
|
|
|
call(["/usr/sbin/postfix", "reload"]) # force the reloading now
|
|
|
|
|
|
|
|
|
|
for arg in sys.argv:
|
|
|
|
|