silent newaliases

master
Charlie Jacomme 6 years ago
parent cbc360893b
commit f60349a52e

@ -10,7 +10,7 @@ import requests
import base64
import json
from subprocess import call
import os.path
import os
import sys
path =(os.path.dirname(os.path.abspath(__file__)))
@ -44,7 +44,7 @@ def generate(api_client):
fichier.write(aliases_rendered)
fichier.close()
call(["/usr/bin/newaliases"]) # Update the aliases config file
call(["/usr/bin/newaliases"], stdout=open(os.devnull, 'wb')) # Update the aliases config file
call(["/usr/sbin/postfix", "reload"]) # force the reloading now
for arg in sys.argv:

Loading…
Cancel
Save