diff --git a/plogical/mailUtilities.py b/plogical/mailUtilities.py index ee5f52522..3675b2136 100755 --- a/plogical/mailUtilities.py +++ b/plogical/mailUtilities.py @@ -636,13 +636,11 @@ def installRspamd(install, rspamd): command = 'sudo yum install rspamd clamav clamd clamav-update -y' else: - command = 'sudo apt-get install rspamd clamav clamav-daemon -y' + command = 'DEBIAN_FRONTEND=noninteractive apt-get install rspamd clamav clamav-daemon -y' - cmd = shlex.split(command) - with open(mailUtilities.RspamdInstallLogPath, 'w') as f: - res = subprocess.call(cmd, stdout=f) + res = subprocess.call(command, stdout=f, shell=True) ###### makefile