From e6fe9eff1e21fd6650beecd655b3167de845abec Mon Sep 17 00:00:00 2001 From: usmannasir Date: Fri, 19 Jan 2024 12:05:53 +0500 Subject: [PATCH] bug fix: dns config reset --- plogical/mailUtilities.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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