bug fix: enable shell for mailscanner install

This commit is contained in:
Usman Nasir
2020-05-29 10:49:31 +05:00
parent 95212f8240
commit a04c88c7c3

View File

@@ -499,7 +499,7 @@ milter_default_action = accept
cmd = shlex.split(command) cmd = shlex.split(command)
with open(mailUtilities.mailScannerInstallLogPath, 'w') as f: with open(mailUtilities.mailScannerInstallLogPath, 'w') as f:
res = subprocess.call(cmd, stdout=f) res = subprocess.call(cmd, stdout=f, shell=True)
if res == 1: if res == 1:
writeToFile = open(mailUtilities.mailScannerInstallLogPath, 'a') writeToFile = open(mailUtilities.mailScannerInstallLogPath, 'a')