From bc2a05b5f5a58dc57cf4146d1802df1b12e01110 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 31 Aug 2019 13:13:59 +0500 Subject: [PATCH] bug fix: SpamAssassin --- plogical/mailUtilities.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plogical/mailUtilities.py b/plogical/mailUtilities.py index ab621f863..ccfa4467f 100755 --- a/plogical/mailUtilities.py +++ b/plogical/mailUtilities.py @@ -499,21 +499,21 @@ milter_default_action = accept command = "groupadd spamd" - subprocess.call(shlex.split(command)) + ProcessUtilities.normalExecutioner(command) command = "useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd" - subprocess.call(shlex.split(command)) + ProcessUtilities.normalExecutioner(command) ## command = "chown spamd:spamd /var/log/spamassassin" - subprocess.call(shlex.split(command)) + ProcessUtilities.normalExecutioner(command) command = "systemctl enable spamassassin" - subprocess.call(shlex.split(command)) + ProcessUtilities.normalExecutioner(command) command = "systemctl start spamassassin" - subprocess.call(shlex.split(command)) + ProcessUtilities.normalExecutioner(command) ## Configuration to postfix @@ -534,7 +534,7 @@ milter_default_action = accept writeToFile.close() command = 'systemctl restart postfix' - subprocess.call(shlex.split(command)) + ProcessUtilities.normalExecutioner(command) print "1,None"