Skip to content
Permalink
Browse files
change checkIfSpamAssassinInstalled method
  • Loading branch information
usmannasir committed Feb 27, 2020
1 parent 2a2521b commit 43ed9fea5162150eafc3c04b43254bb1a945173c
Showing 1 changed file with 5 additions and 5 deletions.
@@ -483,15 +483,15 @@ def installSpamAssassin(install, SpamAssassin):
def checkIfSpamAssassinInstalled():
try:

path = "/etc/mail/spamassassin/local.cf"
path = "/etc/postfix/master.cf"

command = "sudo cat " + path
command = "cat " + path
output = ProcessUtilities.outputExecutioner(command)

if output.find('No such') > -1:
return 0
else:
if output.find('content_filter=spamassassin') > -1:
return 1
else:
return 0

except BaseException as msg:
logging.CyberCPLogFileWriter.writeToFile(

0 comments on commit 43ed9fe

Please sign in to comment.