Skip to content

Commit bc2a05b

Browse files
committed
bug fix: SpamAssassin
1 parent 1ef69f9 commit bc2a05b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: plogical/mailUtilities.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -499,21 +499,21 @@ def configureSpamAssassin():
499499

500500

501501
command = "groupadd spamd"
502-
subprocess.call(shlex.split(command))
502+
ProcessUtilities.normalExecutioner(command)
503503

504504
command = "useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd"
505-
subprocess.call(shlex.split(command))
505+
ProcessUtilities.normalExecutioner(command)
506506

507507
##
508508

509509
command = "chown spamd:spamd /var/log/spamassassin"
510-
subprocess.call(shlex.split(command))
510+
ProcessUtilities.normalExecutioner(command)
511511

512512
command = "systemctl enable spamassassin"
513-
subprocess.call(shlex.split(command))
513+
ProcessUtilities.normalExecutioner(command)
514514

515515
command = "systemctl start spamassassin"
516-
subprocess.call(shlex.split(command))
516+
ProcessUtilities.normalExecutioner(command)
517517

518518
## Configuration to postfix
519519

@@ -534,7 +534,7 @@ def configureSpamAssassin():
534534
writeToFile.close()
535535

536536
command = 'systemctl restart postfix'
537-
subprocess.call(shlex.split(command))
537+
ProcessUtilities.normalExecutioner(command)
538538

539539

540540
print "1,None"

0 commit comments

Comments
 (0)