Fixed postfix warning.
This commit is contained in:
@@ -87,3 +87,8 @@ class Postfix(base.Installer):
|
|||||||
if not os.path.exists("{}/dh2048.pem".format(self.config_dir)):
|
if not os.path.exists("{}/dh2048.pem".format(self.config_dir)):
|
||||||
cmd = "openssl dhparam -dsaparam -out dh2048.pem 2048"
|
cmd = "openssl dhparam -dsaparam -out dh2048.pem 2048"
|
||||||
utils.exec_cmd(cmd, cwd=self.config_dir)
|
utils.exec_cmd(cmd, cwd=self.config_dir)
|
||||||
|
|
||||||
|
# Generate /etc/aliases.db file to avoid warnings
|
||||||
|
aliases_file = "/etc/aliases"
|
||||||
|
if os.path.exists(aliases_file):
|
||||||
|
utils.exec_cmd("postalias {}".format(aliases_file))
|
||||||
|
|||||||
Reference in New Issue
Block a user