silent newaliases
This commit is contained in:
parent
cbc360893b
commit
f60349a52e
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -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…
Reference in a new issue