Added postwhite support. (#171)

* Added postwhite support.

see #109

* Fixed unit test.
This commit is contained in:
Antoine Nguyen
2017-12-07 17:42:38 +01:00
committed by GitHub
parent 2c206a52b1
commit 0ceea13d4b
7 changed files with 424 additions and 346 deletions

View File

@@ -10,6 +10,7 @@ from .. import package
from .. import utils
from . import base
from . import install
class Postfix(base.Installer):
@@ -92,3 +93,6 @@ class Postfix(base.Installer):
aliases_file = "/etc/aliases"
if os.path.exists(aliases_file):
utils.exec_cmd("postalias {}".format(aliases_file))
# Postwhite
install("postwhite", self.config)